Never add transient or non-normal windows

A transient window can be NORMAL, at least in wayland.
This commit is contained in:
Tor Hedin Brønner
2018-08-05 23:05:41 +02:00
parent e747ec9a47
commit 9e24210e2c
+8 -7
View File
@@ -1408,14 +1408,15 @@ function disable () {
function add_filter(meta_window) {
let add = true;
if (meta_window.window_type != Meta.WindowType.NORMAL) {
if (meta_window.get_transient_for()) {
add = false;
// Note: Some dialog windows doesn't set the transient hint. Simply
// treat those as regular windows since it's hard to handle them as
// proper dialogs without the hint (eg. gnome-shell extension preference)
}
if (meta_window.get_transient_for()) {
// Never add transient windows
add = false;
}
if (meta_window.window_type !== Meta.WindowType.NORMAL) {
// And only add Normal windows
add = false;
}
if (meta_window.is_on_all_workspaces()) {
add = false;
}