From 6431abbc8539c503f8d4dcf56bef9d66dcfe129a Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 24 Dec 2012 18:19:26 +0100 Subject: [PATCH] Check that the application is responding when activating a window Currently, we ping windows only when attempting to delete them, but if the application is not responding, we want to show the dialog as soon as possible. Given that we cannot be passively notified that the window stopped responding with the current X11 protocol, a good workaround is to ping the window when activating it. If the window stops responding while active, it is expected the user will try to switch window or open the overview, and when coming back he'll get the failure dialog. https://bugzilla.gnome.org/show_bug.cgi?id=684340 --- src/core/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index e891bd5e1..829e12d28 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -4247,6 +4247,8 @@ window_activate (MetaWindow *window, "Focusing window %s due to activation\n", window->desc); meta_window_focus (window, timestamp); + + meta_window_check_alive (window, timestamp); } /* This function exists since most of the functionality in window_activate