summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-02-18 22:46:36 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-02-18 22:46:36 +0200
commit98e1c7f1ac4891ec1b25f2739206527ca358a3df (patch)
treeac7147a81b5996a1ee4f9e0570fc1df92143c86a
parent8beaea6a4c4ec811025530c5ef983baf4a31fc7f (diff)
downloadmetacity-98e1c7f1ac4891ec1b25f2739206527ca358a3df.tar.gz
window: load NET_WM_USER_TIME from the right window
On subsequent changes, if there is a NET_WM_USER_TIME_WINDOW, then read the property from that rather than from the main window. (Fix an accidental regression: the right Window was being computed but no longer passed in.) Original patch author - Owen Taylor: https://bugzilla.gnome.org/show_bug.cgi?id=585979 This patch also reverts some code removal from this metacity commit: be478298219d2207c8e7a5ba79f20485afe24b70 https://bugzilla.gnome.org/show_bug.cgi?id=587425
-rw-r--r--src/core/window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 20173a02..66af415e 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -5676,6 +5676,8 @@ static gboolean
process_property_notify (MetaWindow *window,
XPropertyEvent *event)
{
+ Window xid = window->xwindow;
+
if (meta_is_verbose ()) /* avoid looking up the name if we don't have to */
{
char *property_name = XGetAtomName (window->display->xdisplay,
@@ -5686,7 +5688,13 @@ process_property_notify (MetaWindow *window,
XFree (property_name);
}
- meta_window_reload_property (window, event->atom, FALSE);
+ if (event->atom == window->display->atom__NET_WM_USER_TIME &&
+ window->user_time_window)
+ {
+ xid = window->user_time_window;
+ }
+
+ meta_window_reload_property_from_xwindow (window, xid, event->atom, FALSE);
return TRUE;
}