-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension.js
More file actions
25 lines (21 loc) · 807 Bytes
/
extension.js
File metadata and controls
25 lines (21 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import {Extension} from 'resource:///org/gnome/shell/extensions/extension.js';
import Meta from 'gi://Meta';
import Clutter from 'gi://Clutter';
export default class Gnome49Test extends Extension {
enable() {
let rect = new Meta.Rectangle({x: 0, y: 0, width: 100, height: 100});
this._click = new Clutter.ClickAction();
this._tap = new Clutter.TapAction();
}
// Ternary version-compat guard: should NOT trigger R-VER49-08/11
_maximizeCompat(window) {
window.get_maximized ? window.maximize(Meta.MaximizeFlags.BOTH) : window.maximize();
}
_unmaximizeCompat(window) {
window.get_maximized ? window.unmaximize(Meta.MaximizeFlags.BOTH) : window.unmaximize();
}
disable() {
this._click = null;
this._tap = null;
}
}