From: Dana Jansens Date: Sun, 11 Mar 2007 22:16:42 +0000 (+0000) Subject: We were grabbing SubstructureNotifyMask on the root window. I don't know why.. It... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e2b3a32aedcca0fae92433b249186d8360ca5753;p=chaz%2Fopenbox We were grabbing SubstructureNotifyMask on the root window. I don't know why.. It meant that we got unmap notifies for windows we weren't even managing and stuff. It ended up breaking VLC when it mapped-unmapped-mapped a window. We grab StructureNotify for all the clients, so I am not sure why this was ever there. --- diff --git a/openbox/client.c b/openbox/client.c index 02141af4..c59baf96 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2,7 +2,7 @@ client.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson - Copyright (c) 2003 Ben Jansens + Copyright (c) 2003-2007 Dana Jansens This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -2004,8 +2004,6 @@ static void client_calc_layer_recursive(ObClient *self, ObClient *orig, own = calc_layer(self); self->layer = MAX(own, min); - ob_debug("layer for %s: %d\n", self->title, self->layer); - for (it = self->transients; it; it = g_slist_next(it)) client_calc_layer_recursive(it->data, orig, self->layer, diff --git a/openbox/screen.c b/openbox/screen.c index 3542dfdc..053757f7 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -2,7 +2,7 @@ screen.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson - Copyright (c) 2003 Ben Jansens + Copyright (c) 2003-2007 Dana Jansens This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -45,7 +45,7 @@ /*! The event mask to grab on the root window */ #define ROOT_EVENTMASK (StructureNotifyMask | PropertyChangeMask | \ EnterWindowMask | LeaveWindowMask | \ - SubstructureNotifyMask | SubstructureRedirectMask | \ + SubstructureRedirectMask | \ ButtonPressMask | ButtonReleaseMask | ButtonMotionMask) guint screen_num_desktops;