diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-22 18:06:45 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-22 18:06:45 +0000 |
| commit | 6a7d4de7899fb90f8b93cb8c7facfc8273b0d1b4 (patch) | |
| tree | 174a7c78ee4e72b69772821e55024a0e86924555 /openbox/prop.c | |
| parent | 221415e97c2279e0245d643f120b6558af72879e (diff) | |
add the MANAGER atom.
allow prop_message to be used with a user-defined mask instead of only with the NetWM mask
Diffstat (limited to 'openbox/prop.c')
| -rw-r--r-- | openbox/prop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/prop.c b/openbox/prop.c index 5cc10109..3724f1a7 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -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); } |
