aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-07-09 22:52:26 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-07-20 18:52:17 +0300
commitb9a58cfc42d79619b088281c713f6f4f63e9d26a (patch)
treecd907ea980ef1ef507f52a02bc355e3b7b1f3f7a /monsterwm.c
parent8bebee1d96a8f3e9e573b9bef93ad5736ed8c4d7 (diff)
rework configurerequest function - no need to know the client of the window
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 1828829..46dadaa 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -285,17 +285,11 @@ void clientmessage(XEvent *e) {
* appropriate values as requested, and tile the window again so that it fills
* the gaps that otherwise could have been created */
void configurerequest(XEvent *e) {
- Desktop *d = NULL;
- Client *c = NULL;
XConfigureRequestEvent *ev = &e->xconfigurerequest;
-
- if (!wintoclient(ev->window, &c, &d) || !c->isfull) {
- XWindowChanges xwc = { ev->x, ev->y, ev->width, ev->height, ev->border_width, ev->above, ev->detail };
- XConfigureWindow(dis, ev->window, ev->value_mask, &xwc);
- XSync(dis, False);
- } else setfullscreen(c, True);
-
- if (!c || !(c->isfloat || c->istrans)) tile(c ? d:&desktops[currdeskidx]);
+ XWindowChanges wc = { ev->x, ev->y, ev->width, ev->height, ev->border_width, ev->above, ev->detail };
+ XConfigureWindow(dis, ev->window, ev->value_mask, &wc);
+ XSync(dis, False);
+ tile(&desktops[currdeskidx]);
}
/* close the window */