aboutsummaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-19 16:40:36 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-19 16:40:36 +0100
commitcdbc84b9a87c427b3d0a202475b0f5aae315fb90 (patch)
treed0f12930c9aaafb84d359d263601e2136b61ac74 /event.c
parentb2f895166af45b5d84abab90032bd3cc75391dc8 (diff)
downloaddwm-cdbc84b9a87c427b3d0a202475b0f5aae315fb90.tar.gz
introduced Layout struct
Diffstat (limited to 'event.c')
-rw-r--r--event.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/event.c b/event.c
index 4b3c1e3..d200a8d 100644
--- a/event.c
+++ b/event.c
@@ -137,10 +137,10 @@ buttonpress(XEvent *e) {
return;
}
}
- if(ev->x < x + bmw)
+ if(ev->x < x + blw)
switch(ev->button) {
case Button1:
- togglemode(NULL);
+ togglelayout(NULL);
break;
case Button4:
a.i = 1;
@@ -156,14 +156,14 @@ buttonpress(XEvent *e) {
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
- && (arrange == dofloat || c->isfloat) && !c->isfixed)
+ && (lt->arrange == dofloat || c->isfloat) && !c->isfixed)
{
restack();
resizemouse(c);
@@ -181,7 +181,7 @@ configurerequest(XEvent *e) {
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)
@@ -310,7 +310,7 @@ propertynotify(XEvent *e) {
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);