[mutter/wip/carlosg/frames-client: 1001/1005] x11: Add "source_xwindow" parameter to MetaPropValue




commit 49a5ceae8f9a0ff2ae1402b202244055f9736235
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Sep 9 13:37:08 2022 +0200

    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.

 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 729d5b684c..1b97b26481 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 b8d723f071..f55d80baa6 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
   {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]