Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
removed debug compile flags
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
dfe2552
..
d200a8d
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-137,10
+137,10
@@
buttonpress(XEvent *e) {
return;
}
}
return;
}
}
- if(ev->x < x + b
m
w)
+ if(ev->x < x + b
l
w)
switch(ev->button) {
case Button1:
switch(ev->button) {
case Button1:
- toggle
mode
(NULL);
+ toggle
layout
(NULL);
break;
case Button4:
a.i = 1;
break;
case Button4:
a.i = 1;
@@
-156,14
+156,14
@@
buttonpress(XEvent *e) {
focus(c);
if(CLEANMASK(ev->state) != MODKEY)
return;
focus(c);
if(CLEANMASK(ev->state) != MODKEY)
return;
- if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) {
+ if(ev->button == Button1 && (
lt->
arrange == dofloat || c->isfloat)) {
restack();
movemouse(c);
}
else if(ev->button == Button2)
zoom(NULL);
else if(ev->button == Button3
restack();
movemouse(c);
}
else if(ev->button == Button2)
zoom(NULL);
else if(ev->button == Button3
- && (arrange == dofloat || c->isfloat) && !c->isfixed)
+ && (
lt->
arrange == dofloat || c->isfloat) && !c->isfixed)
{
restack();
resizemouse(c);
{
restack();
resizemouse(c);
@@
-181,7
+181,7
@@
configurerequest(XEvent *e) {
c->ismax = False;
if(ev->value_mask & CWBorderWidth)
c->border = ev->border_width;
c->ismax = False;
if(ev->value_mask & CWBorderWidth)
c->border = ev->border_width;
- if(c->isfixed || c->isfloat || (arrange == dofloat)) {
+ if(c->isfixed || c->isfloat || (
lt->
arrange == dofloat)) {
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)
@@
-310,7
+310,7
@@
propertynotify(XEvent *e) {
case XA_WM_TRANSIENT_FOR:
XGetTransientForHint(dpy, c->win, &trans);
if(!c->isfloat && (c->isfloat = (trans != 0)))
case XA_WM_TRANSIENT_FOR:
XGetTransientForHint(dpy, c->win, &trans);
if(!c->isfloat && (c->isfloat = (trans != 0)))
- arrange();
+
lt->
arrange();
break;
case XA_WM_NORMAL_HINTS:
updatesizehints(c);
break;
case XA_WM_NORMAL_HINTS:
updatesizehints(c);
@@
-368,14
+368,3
@@
grabkeys(void) {
GrabModeAsync, GrabModeAsync);
}
}
GrabModeAsync, GrabModeAsync);
}
}
-
-void
-procevent(void) {
- XEvent ev;
-
- while(XPending(dpy)) {
- XNextEvent(dpy, &ev);
- if(handler[ev.type])
- (handler[ev.type])(&ev); /* call handler */
- }
-}