Merge pull request #531 from Schneegans/feature/gnome-49
This commit is contained in:
@@ -11,6 +11,7 @@ SPDX-License-Identifier: CC-BY-4.0
|
||||
|
||||
#### New Features
|
||||
|
||||
- Ported the extension to GNOME 49.
|
||||
- Added a color preview widget to the preferences of the Aura Glow effect. Thanks to [@lstrsrt](https://github.com/lstrsrt) for this contribution!
|
||||
|
||||
## [Burn My Windows 46](https://github.com/schneegans/Burn-My-Windows/releases/tag/v46)
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"gettext-domain": "burn-my-windows",
|
||||
"settings-schema": "org.gnome.shell.extensions.burn-my-windows",
|
||||
"shell-version": ["45", "46", "47", "48"],
|
||||
"shell-version": ["45", "46", "47", "48", "49"],
|
||||
"url": "https://github.com/Schneegans/Burn-My-Windows",
|
||||
"version": 46
|
||||
}
|
||||
|
||||
+8
-2
@@ -133,8 +133,14 @@ export var Shader = GObject.registerClass({
|
||||
// This is not necessarily symmetric, but I haven't figured out a way to
|
||||
// get the actual values...
|
||||
const padding = (actor.width - actor.meta_window.get_frame_rect().width) / 2;
|
||||
const isFullscreen = actor.meta_window.get_maximized() === Meta.MaximizeFlags.BOTH ||
|
||||
actor.meta_window.fullscreen;
|
||||
let isFullscreen = actor.meta_window.fullscreen;
|
||||
|
||||
// is_maximized has been added in GNOME 49.
|
||||
if (actor.meta_window.is_maximized) {
|
||||
isFullscreen |= actor.meta_window.is_maximized();
|
||||
} else {
|
||||
isFullscreen |= actor.meta_window.get_maximized() === Meta.MaximizeFlags.BOTH;
|
||||
}
|
||||
|
||||
this.set_uniform_float(this._uPadding, 1, [padding]);
|
||||
this.set_uniform_float(this._uForOpening, 1, [forOpening]);
|
||||
|
||||
Reference in New Issue
Block a user