From: Dana Jansens Date: Wed, 28 May 2003 02:29:40 +0000 (+0000) Subject: no button mask on the plate, and some cleanups with redundant if's X-Git-Tag: gl2~62 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=df497a769852506fbaa37b23380a71f6c569441f;p=dana%2Fopenbox.git no button mask on the plate, and some cleanups with redundant if's --- diff --git a/openbox/frame.c b/openbox/frame.c index 6c738bbc..0fbd34f5 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -3,7 +3,7 @@ #include "extensions.h" #include "framerender.h" -#define PLATE_EVENTMASK (SubstructureRedirectMask | ButtonPressMask) +#define PLATE_EVENTMASK (SubstructureRedirectMask) #define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ ButtonPressMask | ButtonReleaseMask | ExposureMask) #define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \ @@ -515,9 +515,7 @@ void frame_adjust_area(Frame *self, gboolean moved, gboolean resized) if (temp > be) te = temp; break; } - } g_print("frame extends by %d, %d, %d, %d\n", le, te, le, be); - if (resized) { /* if (self->client->decorations & Decor_Border) { self->bwidth = theme_bwidth; @@ -527,9 +525,7 @@ g_print("frame extends by %d, %d, %d, %d\n", le, te, le, be); } */ STRUT_SET(self->size, le, te, re, be); - } - if (resized) { /* move and resize the plate */ XMoveResizeWindow(ob_display, self->plate, self->size.left,