diff options
| author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-12 17:17:15 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-12 17:17:15 +0200 |
| commit | 2e836ecce1ba0629a6088b739c1092d27fccd72b (patch) | |
| tree | 3761067105ab4cd3d2d2843fda154090a20c98be /event.c | |
| parent | added max (diff) | |
| download | dwm-2e836ecce1ba0629a6088b739c1092d27fccd72b.tar.gz dwm-2e836ecce1ba0629a6088b739c1092d27fccd72b.zip | |
added gravity stuff
Diffstat (limited to 'event.c')
| -rw-r--r-- | event.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -77,6 +77,7 @@ configurerequest(XEvent *e) | |||
| 77 | 77 | ||
| 78 | ev->value_mask &= ~CWSibling; | 78 | ev->value_mask &= ~CWSibling; |
| 79 | if((c = getclient(ev->window))) { | 79 | if((c = getclient(ev->window))) { |
| 80 | gravitate(c, True); | ||
| 80 | if(ev->value_mask & CWX) | 81 | if(ev->value_mask & CWX) |
| 81 | c->x = ev->x; | 82 | c->x = ev->x; |
| 82 | if(ev->value_mask & CWY) | 83 | if(ev->value_mask & CWY) |
| @@ -85,6 +86,9 @@ configurerequest(XEvent *e) | |||
| 85 | c->w = ev->width; | 86 | c->w = ev->width; |
| 86 | if(ev->value_mask & CWHeight) | 87 | if(ev->value_mask & CWHeight) |
| 87 | c->h = ev->height; | 88 | c->h = ev->height; |
| 89 | if(ev->value_mask & CWBorderWidth) | ||
| 90 | c->border = ev->border_width; | ||
| 91 | gravitate(c, False); | ||
| 88 | } | 92 | } |
| 89 | 93 | ||
| 90 | wc.x = ev->x; | 94 | wc.x = ev->x; |
