]> Pileus Git - wmpus/commitdiff
Fake clicking on title bars in stack mode
authorAndy Spencer <andy753421@gmail.com>
Thu, 29 Sep 2011 08:42:00 +0000 (08:42 +0000)
committerAndy Spencer <andy753421@gmail.com>
Thu, 29 Sep 2011 08:42:00 +0000 (08:42 +0000)
wm-wmii.c

index 609daa851e672e0b05b66610ff49458c61600c17..db75bcb92d55b891a0b21ec7022c0844ca2f4a6e 100644 (file)
--- a/wm-wmii.c
+++ b/wm-wmii.c
@@ -560,6 +560,8 @@ int wm_handle_key(win_t *win, Key_t key, mod_t mod, ptr_t ptr)
                        return set_move(win,ptr,resize), 1;
                if (move_mode != none && mod.up)
                        return set_move(win,ptr,none),   1;
+               if (key == key_mouse1 && !mod.up && win->h == STACK)
+                       return wm_update(),              0;
                return 0;
        }