diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-19 19:22:13 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-19 19:22:13 +0000 |
| commit | e442c6cc56813ac2d80ddf956603b6d0123d8145 (patch) | |
| tree | bd10ac10956ead59c20d0084e5f7c9ebd01c7bb8 | |
| parent | 5b5ab0408a82603ea0d91da9332988f0bb2e9c0f (diff) | |
snap windows when moving them
| -rw-r--r-- | openbox/action.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/action.c b/openbox/action.c index 00985141..f3ee6be5 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -3,6 +3,7 @@ #include "frame.h" #include "screen.h" #include "action.h" +#include "snap.h" #include <glib.h> @@ -401,8 +402,9 @@ void action_move(union ActionData *data) int x = data->move.x; int y = data->move.y; - /* XXX window snapping/struts */ + snap_move(c, &x, &y, c->frame->area.width, c->frame->area.height); + frame_frame_gravity(c->frame, &x, &y); /* get where the client should be */ client_configure(c, Corner_TopLeft, x, y, c->area.width, c->area.height, TRUE, data->move.final); } |
