From 782d200d6c2566aa50fbbed7cbe7bf65a2bea312 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 9 Sep 2022 13:37:08 +0200 Subject: [PATCH] x11: Add "source_xwindow" parameter to MetaPropValue It will become necessary to track properties and changes from frame windows, and it will be more convenient to have this managed by the common property tracking mechanisms. Add this source_xwindow parameter so property handler functions can check whether the property belonged to the client Window or the frame Window. Part-of: --- src/x11/xprops.c | 2 ++ src/x11/xprops.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/x11/xprops.c b/src/x11/xprops.c index 729d5b684..1b97b2648 100644 --- a/src/x11/xprops.c +++ b/src/x11/xprops.c @@ -958,6 +958,8 @@ meta_prop_get_values (MetaX11Display *x11_display, goto next; } + values[i].source_xwindow = xwindow; + switch (values[i].type) { case META_PROP_VALUE_INVALID: diff --git a/src/x11/xprops.h b/src/x11/xprops.h index b8d723f07..f55d80baa 100644 --- a/src/x11/xprops.h +++ b/src/x11/xprops.h @@ -132,6 +132,7 @@ typedef struct MetaPropValueType type; Atom atom; Atom required_type; /* autofilled if None */ + Window source_xwindow; union {