Update watchers priorities

Make extension watcher to take precedence over X11 window watcher when available.
This would make Gnome extension be activated correctly, when using XWayland.
This commit is contained in:
vdonich 2025-03-18 00:18:17 +00:00 committed by GitHub
parent d1e3540669
commit bea3a4ac58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,15 +110,15 @@ async fn filter_first_supported(
client,
"KWin window (script)"
));
watch!(create_watcher::<x11_window::WindowWatcher>(
client,
"X11 window"
));
#[cfg(feature = "gnome")]
watch!(create_watcher::<gnome_window::WindowWatcher>(
client,
"Gnome window (extension)"
));
watch!(create_watcher::<x11_window::WindowWatcher>(
client,
"X11 window"
));
}
};