Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
added mini stuff
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
937bee2
..
e85e11f
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-89,6
+89,7
@@
configurerequest(XEvent *e)
if(ev->value_mask & CWBorderWidth)
c->border = ev->border_width;
gravitate(c, False);
if(ev->value_mask & CWBorderWidth)
c->border = ev->border_width;
gravitate(c, False);
+ resize(c, True);
}
wc.x = ev->x;
}
wc.x = ev->x;
@@
-179,6
+180,7
@@
static void
propertynotify(XEvent *e)
{
XPropertyEvent *ev = &e->xproperty;
propertynotify(XEvent *e)
{
XPropertyEvent *ev = &e->xproperty;
+ Window trans;
Client *c;
if(ev->state == PropertyDelete)
Client *c;
if(ev->state == PropertyDelete)
@@
-192,9
+194,10
@@
propertynotify(XEvent *e)
switch (ev->atom) {
default: break;
case XA_WM_TRANSIENT_FOR:
switch (ev->atom) {
default: break;
case XA_WM_TRANSIENT_FOR:
- XGetTransientForHint(dpy, c->win, &c->trans);
+ XGetTransientForHint(dpy, c->win, &trans);
+ if(!c->floating && (c->floating = (trans != 0)))
+ arrange(NULL);
break;
break;
- update_size(c);
case XA_WM_NORMAL_HINTS:
update_size(c);
break;
case XA_WM_NORMAL_HINTS:
update_size(c);
break;