Skip to content

Commit 921e1ec

Browse files
authored
Merge pull request #531 from Schneegans/feature/gnome-49
2 parents 4f6ea23 + b6e5647 commit 921e1ec

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SPDX-License-Identifier: CC-BY-4.0
1111

1212
#### New Features
1313

14+
- Ported the extension to GNOME 49.
1415
- Added a color preview widget to the preferences of the Aura Glow effect. Thanks to [@lstrsrt](https://github.com/lstrsrt) for this contribution!
1516

1617
## [Burn My Windows 46](https://github.com/schneegans/Burn-My-Windows/releases/tag/v46)

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"gettext-domain": "burn-my-windows",
1111
"settings-schema": "org.gnome.shell.extensions.burn-my-windows",
12-
"shell-version": ["45", "46", "47", "48"],
12+
"shell-version": ["45", "46", "47", "48", "49"],
1313
"url": "https://github.com/Schneegans/Burn-My-Windows",
1414
"version": 46
1515
}

src/Shader.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,15 @@ export var Shader = GObject.registerClass({
132132

133133
// This is not necessarily symmetric, but I haven't figured out a way to
134134
// get the actual values...
135-
const padding = (actor.width - actor.meta_window.get_frame_rect().width) / 2;
136-
const isFullscreen = actor.meta_window.get_maximized() === Meta.MaximizeFlags.BOTH ||
137-
actor.meta_window.fullscreen;
135+
const padding = (actor.width - actor.meta_window.get_frame_rect().width) / 2;
136+
let isFullscreen = actor.meta_window.fullscreen;
137+
138+
// is_maximized has been added in GNOME 49.
139+
if (actor.meta_window.is_maximized) {
140+
isFullscreen |= actor.meta_window.is_maximized();
141+
} else {
142+
isFullscreen |= actor.meta_window.get_maximized() === Meta.MaximizeFlags.BOTH;
143+
}
138144

139145
this.set_uniform_float(this._uPadding, 1, [padding]);
140146
this.set_uniform_float(this._uForOpening, 1, [forOpening]);

0 commit comments

Comments
 (0)