From 6a95d49a87982701885919a1df3d981c27581f7b Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Sun, 21 Oct 2012 21:19:00 +0800 Subject: [PATCH] Bug fix #55: Workaround for window type detection on Openbox menus A small workaround for a small problem. --- src/compton.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compton.c b/src/compton.c index 9f77a7ae..ce461691 100755 --- a/src/compton.c +++ b/src/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]);