Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new stuff, fixed several issues
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
1db3d96
..
37196d1
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-77,6
+77,7
@@
configurerequest(XEvent *e)
ev->value_mask &= ~CWSibling;
if((c = getclient(ev->window))) {
ev->value_mask &= ~CWSibling;
if((c = getclient(ev->window))) {
+ gravitate(c, True);
if(ev->value_mask & CWX)
c->x = ev->x;
if(ev->value_mask & CWY)
if(ev->value_mask & CWX)
c->x = ev->x;
if(ev->value_mask & CWY)
@@
-85,6
+86,9
@@
configurerequest(XEvent *e)
c->w = ev->width;
if(ev->value_mask & CWHeight)
c->h = ev->height;
c->w = ev->width;
if(ev->value_mask & CWHeight)
c->h = ev->height;
+ if(ev->value_mask & CWBorderWidth)
+ c->border = ev->border_width;
+ gravitate(c, False);
}
wc.x = ev->x;
}
wc.x = ev->x;
@@
-182,11
+186,11
@@
propertynotify(XEvent *e)
if(ev->state == PropertyDelete)
return; /* ignore */
if(ev->state == PropertyDelete)
return; /* ignore */
- if(ev->atom == wm_atom[WMProtocols]) {
- c->proto = win_proto(c->win);
- return;
- }
if((c = getclient(ev->window))) {
if((c = getclient(ev->window))) {
+ if(ev->atom == wm_atom[WMProtocols]) {
+ c->proto = win_proto(c->win);
+ return;
+ }
switch (ev->atom) {
default: break;
case XA_WM_TRANSIENT_FOR:
switch (ev->atom) {
default: break;
case XA_WM_TRANSIENT_FOR: