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
This commit is contained in:
parent
57ff0f7071
commit
6431abbc85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user