Commit 6431abbc authored by Giovanni Campagna's avatar Giovanni Campagna
Browse files

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
parent 57ff0f70
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment