Blob Blame History Raw
From 9b8a85d42d1c74f6a0815d23a484af3883284538 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Mon, 3 Sep 2018 17:10:27 +0200
Subject: [PATCH] app: Close all closable windows from quit()

There's no relation between a window being hidden from overview/taskbars
and a window not being closable - currently we effectively disable the
fallback quit action for any application with open transients, which
simply doesn't make sense.

Instead, only exclude windows for which the close action has been
explicitly disabled.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/217
---
 src/shell-app.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shell-app.c b/src/shell-app.c
index 84fcc97bf..1a6d5888d 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -1159,7 +1159,7 @@ shell_app_request_quit (ShellApp   *app)
     {
       MetaWindow *win = iter->data;
 
-      if (meta_window_is_skip_taskbar (win))
+      if (!meta_window_can_close (win))
         continue;
 
       meta_window_delete (win, shell_global_get_current_time (shell_global_get ()));
-- 
2.20.1