summaryrefslogtreecommitdiffstats
path: root/compton.c
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2012-10-21 21:19:00 +0800
committerRichard Grenville <pyxlcy@gmail.com>2012-10-21 21:21:38 +0800
commit62a6c2957e958c34515cd5633c9bf38e7f1faf51 (patch)
tree53bb982c0d0b8e37fa10868dbdd60983c3ef53d4 /compton.c
parent3c1e003830fe4066c4ccca4f75abf381a5cb70c3 (diff)
downloadtdebase-62a6c2957e958c34515cd5633c9bf38e7f1faf51.tar.gz
tdebase-62a6c2957e958c34515cd5633c9bf38e7f1faf51.zip
Bug fix #55: Workaround for window type detection on Openbox menus
A small workaround for a small problem.
Diffstat (limited to 'compton.c')
-rwxr-xr-xcompton.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/compton.c b/compton.c
index 9f77a7ae5..ce461691a 100755
--- a/compton.c
+++ b/compton.c
@@ -1811,6 +1811,11 @@ map_win(Display *dpy, Window id,
get_frame_extents(dpy, w, w->client_win);
}
+ // Workaround for _NET_WM_WINDOW_TYPE for Openbox menus, which is
+ // set on a non-override-redirect window with no WM_STATE either
+ if (!w->client_win && WINTYPE_UNKNOWN == w->window_type)
+ w->window_type = get_wintype_prop(dpy, w->id);
+
#ifdef DEBUG_WINTYPE
printf("map_win(%#010lx): type %s\n",
w->id, WINTYPES[w->window_type]);