[MetaDisplay] added "window-marked-urgent" signal

Having a MetaDisplay window-marked-urgent signal when a window sets its urgent
hint allows for centralized processing

https://bugzilla.gnome.org/show_bug.cgi?id=600068
This commit is contained in:
Tomas Frydrych
2009-11-17 10:24:18 +00:00
parent 0ccfb0d781
commit 5e2c66e241
3 changed files with 23 additions and 0 deletions

View File

@@ -1406,6 +1406,15 @@ reload_wm_hints (MetaWindow *window,
if (!initial && (window->wm_hints_urgent != old_urgent))
g_object_notify (G_OBJECT (window), "urgent");
/*
* Do not emit signal for the initial property load, let the constructor to
* take care of it once the MetaWindow is fully constructed.
*
* Only emit if the property is both changed and set.
*/
if (!initial && window->wm_hints_urgent && !old_urgent)
g_signal_emit_by_name (window->display, "window-marked-urgent", window);
meta_icon_cache_property_changed (&window->icon_cache,
window->display,
XA_WM_HINTS);