diff options
author | MC <mc@hack.org> | 2010-06-19 10:54:21 +0200 |
---|---|---|
committer | MC <mc@hack.org> | 2010-06-19 10:54:21 +0200 |
commit | e4313abe35a4f450164d89e4b23b1ded990ebc64 (patch) | |
tree | 0e594560a68403d627bea094f9ccd9e97736d83c | |
parent | afce86dd49a219c698bdc4409863684a9a43b1bd (diff) | |
download | mcwm-e4313abe35a4f450164d89e4b23b1ded990ebc64.zip |
Raise window when doing resize by keyboard.
Don't raise window every time we do an incremental mouse move or
resize. Just do it at the beginning.
-rw-r--r-- | mcwm.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -288,8 +288,6 @@ void movewindow(xcb_drawable_t win, uint16_t x, uint16_t y) return; } - raisewindow(win); - values[0] = x; values[1] = y; @@ -416,6 +414,8 @@ void resizestep(xcb_drawable_t win, char direction) /* Can't resize root. */ return; } + + raisewindow(win); /* Get window geometry. */ geom = xcb_get_geometry_reply(conn, @@ -490,8 +490,6 @@ void mousemove(xcb_drawable_t win, int rel_x, int rel_y) int x; int y; - raisewindow(win); - /* Get window geometry. */ geom = xcb_get_geometry_reply(conn, xcb_get_geometry(conn, win), @@ -587,6 +585,8 @@ void movestep(xcb_drawable_t win, char direction) /* Can't move root. */ return; } + + raisewindow(win); /* Get window geometry. */ geom = xcb_get_geometry_reply(conn, @@ -893,6 +893,9 @@ void events(void) else { /* We're moving or resizing. */ + + /* Raise window. */ + raisewindow(win); /* Save the pointer coordinates when starting. */ mode_x = e->event_x; |