Skip to content

Commit 02d4b57

Browse files
committed
WindowStateSaver: better filter for dialog windows
1 parent 26a5c81 commit 02d4b57

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/WindowStateSaver.vala

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,12 @@ public class Gala.WindowStateSaver : GLib.Object {
7878
public static void on_map (Meta.Window window) {
7979
var app_id = window_tracker.get_app_for_window (window).id;
8080

81-
if (app_id.has_prefix ("window:")) {
82-
// if window failed to be identified, don't remember it
83-
return;
84-
}
85-
86-
if (window.window_type != Meta.WindowType.NORMAL) {
87-
return;
88-
}
89-
90-
if (ShellClientsManager.get_instance ().is_positioned_window (window)) {
81+
if (app_id.has_prefix ("window:") || // if window failed to be identified, don't remember it
82+
ShellClientsManager.get_instance ().is_positioned_window (window) ||
83+
window.window_type != Meta.WindowType.NORMAL ||
84+
window.skip_taskbar ||
85+
!window.resizeable
86+
) {
9187
return;
9288
}
9389

0 commit comments

Comments
 (0)