Commit 57ff0f70 authored by Giovanni Campagna's avatar Giovanni Campagna
Browse files

MetaWindow: add a public method for checking if the application is responding

Add meta_window_check_alive(), which is a simple wrapper over
meta_display_ping_window(), and takes care of showing the "Application
is not responding dialog" if needed.

https://bugzilla.gnome.org/show_bug.cgi?id=684340
parent 2a2ac527
......@@ -133,6 +133,18 @@ delete_ping_timeout_func (MetaDisplay *display,
g_child_watch_add (dialog_pid, dialog_exited, window);
}
void
meta_window_check_alive (MetaWindow *window,
guint32 timestamp)
{
meta_display_ping_window (window->display,
window,
timestamp,
delete_ping_reply_func,
delete_ping_timeout_func,
window);
}
void
meta_window_delete (MetaWindow *window,
guint32 timestamp)
......@@ -156,13 +168,8 @@ meta_window_delete (MetaWindow *window,
}
meta_error_trap_pop (window->display);
meta_display_ping_window (window->display,
window,
timestamp,
delete_ping_reply_func,
delete_ping_timeout_func,
window);
meta_window_check_alive (window, timestamp);
if (window->has_focus)
{
/* FIXME Clean this up someday
......
......@@ -190,6 +190,9 @@ void meta_window_kill (MetaWindow *window);
void meta_window_focus (MetaWindow *window,
guint32 timestamp);
void meta_window_check_alive (MetaWindow *window,
guint32 timestamp);
void meta_window_begin_grab_op (MetaWindow *window,
MetaGrabOp op,
gboolean frame_action,
......
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