]> Dogcows Code - chaz/openbox/commitdiff
add the MANAGER atom.
authorDana Jansens <danakj@orodu.net>
Tue, 22 Jul 2003 18:06:45 +0000 (18:06 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 Jul 2003 18:06:45 +0000 (18:06 +0000)
allow prop_message to be used with a user-defined mask instead of only with the NetWM mask

openbox/prop.c
openbox/prop.h

index 5cc101092a2819ebfeaecc7ff29a38929c3dac2b..3724f1a724f101780396ff37cda8c201c07427a3 100644 (file)
@@ -16,6 +16,8 @@ void prop_startup()
     CREATE(atom, "ATOM");
     CREATE(string, "STRING");
     CREATE(utf8, "UTF8_STRING");
+
+    CREATE(manager, "MANAGER");
      
     CREATE(wm_colormap_windows, "WM_COLORMAP_WINDOWS");
     CREATE(wm_protocols, "WM_PROTOCOLS");
@@ -395,7 +397,7 @@ void prop_erase(Window win, Atom prop)
 }
 
 void prop_message(Window about, Atom messagetype, long data0, long data1,
-                 long data2, long data3)
+                 long data2, long data3, long mask)
 {
     XEvent ce;
     ce.xclient.type = ClientMessage;
@@ -408,5 +410,5 @@ void prop_message(Window about, Atom messagetype, long data0, long data1,
     ce.xclient.data.l[2] = data2;
     ce.xclient.data.l[3] = data3;
     XSendEvent(ob_display, RootWindow(ob_display, ob_screen), FALSE,
-              SubstructureNotifyMask | SubstructureRedirectMask, &ce);
+              mask, &ce);
 }
index 06ad14370075e75c75eebc990b11bc55e1d89582..58ff570a192e64582ce086b42234de639482232d 100644 (file)
@@ -17,6 +17,9 @@ typedef struct Atoms {
     Atom string;   /*!< The atom which represents ascii strings */
     Atom utf8;     /*!< The atom which represents utf8-encoded strings */
 
+    /* selection stuff */
+    Atom manager;
+
     /* window hints */
     Atom wm_colormap_windows;
     Atom wm_protocols;
@@ -157,7 +160,7 @@ void prop_set_strings_utf8(Window win, Atom prop, char **strs);
 void prop_erase(Window win, Atom prop);
 
 void prop_message(Window about, Atom messagetype, long data0, long data1,
-                 long data2, long data3);
+                 long data2, long data3, long mask);
 
 #define PROP_GET32(win, prop, type, ret) \
     (prop_get32(win, prop_atoms.prop, prop_atoms.type, ret))
@@ -181,6 +184,7 @@ void prop_message(Window about, Atom messagetype, long data0, long data1,
 #define PROP_ERASE(win, prop) prop_erase(win, prop_atoms.prop)
 
 #define PROP_MSG(about, msgtype, data0, data1, data2, data3) \
-  (prop_message(about, prop_atoms.msgtype, data0, data1, data2, data3))
+  (prop_message(about, prop_atoms.msgtype, data0, data1, data2, data3, \
+                SubstructureNotifyMask | SubstructureRedirectMask))
 
 #endif
This page took 0.032331 seconds and 4 git commands to generate.