🪲 Fix some GNOME 3.36 issues
This commit is contained in:
+4
-2
@@ -86,16 +86,18 @@ class Extension {
|
||||
|
||||
Workspace.prototype._addWindowClone = function(...params) {
|
||||
const result = extensionThis._origAddWindowClone.apply(this, params);
|
||||
const realWindow = params[0].get_compositor_private();
|
||||
|
||||
let clone;
|
||||
let realWindow, clone;
|
||||
|
||||
if (utils.shellVersionIs(3, 36)) {
|
||||
clone = result[0];
|
||||
realWindow = clone.realWindow;
|
||||
} else if (utils.shellVersionIs(3, 38)) {
|
||||
clone = result._windowContainer;
|
||||
realWindow = params[0].get_compositor_private();
|
||||
} else {
|
||||
clone = result.window_container;
|
||||
realWindow = params[0].get_compositor_private();
|
||||
}
|
||||
|
||||
const xID = realWindow.connect('notify::scale-x', () => {
|
||||
|
||||
Reference in New Issue
Block a user