summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-07-19 13:52:31 +0200
committerarg@10ksloc.org <unknown>2006-07-19 13:52:31 +0200
commit8af1d973323bd799c1ec021bb7c16860e120cf92 (patch)
tree47a5d675ab8a444317aaf25a6d2776b0eae7413b /event.c
parentimplemented fallback for too many clients in stacked mode (diff)
downloaddwm-8af1d973323bd799c1ec021bb7c16860e120cf92.tar.gz
dwm-8af1d973323bd799c1ec021bb7c16860e120cf92.zip
refactored Sanders code somewhat
Diffstat (limited to 'event.c')
-rw-r--r--event.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/event.c b/event.c
index 9d69373..e4dfad1 100644
--- a/event.c
+++ b/event.c
@@ -114,17 +114,10 @@ resizemouse(Client *c)
114 *c->h = abs(ocy - ev.xmotion.y); 114 *c->h = abs(ocy - ev.xmotion.y);
115 *c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - *c->w; 115 *c->x = (ocx <= ev.xmotion.x) ? ocx : ocx - *c->w;
116 *c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - *c->h; 116 *c->y = (ocy <= ev.xmotion.y) ? ocy : ocy - *c->h;
117 if(ocx <= ev.xmotion.x) { 117 if(ocx <= ev.xmotion.x)
118 if(ocy <= ev.xmotion.y) 118 sticky = (ocy <= ev.xmotion.y) ? TopLeft : BotLeft;
119 sticky = TopLeft; 119 else
120 else 120 sticky = (ocy <= ev.xmotion.y) ? TopRight : BotRight;
121 sticky = BottomLeft;
122 } else {
123 if(ocy <= ev.xmotion.y)
124 sticky = TopRight;
125 else
126 sticky = BottomRight;
127 }
128 resize(c, True, sticky); 121 resize(c, True, sticky);
129 break; 122 break;
130 case ButtonRelease: 123 case ButtonRelease: