Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"46",
"47",
"48",
"49"
"49",
"50"
],
"url": "https://github.com/aunetx/blur-my-shell",
"uuid": "blur-my-shell@aunetx",
Expand Down
12 changes: 9 additions & 3 deletions src/components/applications.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Meta from 'gi://Meta';
import Gio from 'gi://Gio';
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
import * as Config from 'resource:///org/gnome/shell/misc/config.js';

import { ApplicationsService } from '../dbus/services.js';
import { PaintSignals } from '../conveniences/paint_signals.js';
Expand Down Expand Up @@ -362,9 +363,14 @@ export const ApplicationsBlur = class ApplicationsBlur {
/// If `scale-monitor-framebuffer` experimental feature if on, we don't need to manage scaling.
/// Else, on wayland, we need to divide by the scale to get the correct result.
compute_allocation(meta_window) {
const scale_monitor_framebuffer = this.mutter_gsettings.get_strv('experimental-features')
.includes('scale-monitor-framebuffer');
const is_wayland = Meta.is_wayland_compositor();
// TODO: Drop GNOME <50 compatibility
const gnome_shell_major_version = parseInt(Config.PACKAGE_VERSION.split('.')[0]);
const scale_monitor_framebuffer =
gnome_shell_major_version >= 50 ||
this.mutter_gsettings
.get_strv('experimental-features')
.includes('scale-monitor-framebuffer');
const is_wayland = gnome_shell_major_version >= 50 || Meta.is_wayland_compositor();
const monitor_index = meta_window.get_monitor();
// check if the window is using wayland, or xwayland/xorg for rendering
const scale = !scale_monitor_framebuffer && is_wayland && meta_window.get_client_type() == 0
Expand Down