Skip to content

Commit fbfc91f

Browse files
authored
WindowStateSaver: better filter for dialog windows (#2523)
1 parent 0096d50 commit fbfc91f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/WindowStateSaver.vala

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,13 @@ 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+
!window.allows_move ()
87+
) {
9188
return;
9289
}
9390

0 commit comments

Comments
 (0)