summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2010-07-22 06:43:36 +0200
committerMichael Cardell Widerkrantz <mc@hack.org>2010-07-22 06:43:36 +0200
commitde7e707648d4d2ae9c29b2cfceb54b271cb51daf (patch)
tree47b6f4571226e0e53541a379673b628e4f6dcc8d /mcwm.c
parenteac9ff63554bfd466ef2af774148058d57b9a4a1 (diff)
downloadmcwm-de7e707648d4d2ae9c29b2cfceb54b271cb51daf.zip
Use MOVE_STEP.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcwm.c b/mcwm.c
index 126b420..4a219af 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -1312,6 +1312,7 @@ void resizestep(struct client *client, char direction)
win = client->id;
+ /* Save pointer position so we can warp back later, if necessary. */
if (!getpointer(win, &start_x, &start_y))
{
return;
@@ -1320,7 +1321,6 @@ void resizestep(struct client *client, char direction)
raisewindow(win);
/* Get window geometry. */
-
if (!getgeom(client->id, &x, &y, &width, &height))
{
return;
@@ -1342,8 +1342,8 @@ void resizestep(struct client *client, char direction)
if (0 == hints.width_inc || 0 == hints.height_inc)
{
PDEBUG("Client lied. No size inc hints.\n");
- step_x = 1;
- step_y = 1;
+ step_x = MOVE_STEP;
+ step_y = MOVE_STEP;
}
else
{