diff options
author | Danny Baumann <dannybaumann@web.de> | 2007-09-09 09:19:32 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-09-09 09:19:32 +0200 |
commit | d8347024041d186428295b83ec51952536966709 (patch) | |
tree | dd50121c1ed5a1c095b8c533d482a674ec3c66c6 /gtk | |
parent | 35e46a73691f5e360eed5620e841a98b32f7e2c3 (diff) |
Correct default behaviour of middle mouse button: It should be lowering the window, not raising it.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/window-decorator/gtk-window-decorator.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c index d1752fca..ec1abc8f 100644 --- a/gtk/window-decorator/gtk-window-decorator.c +++ b/gtk/window-decorator/gtk-window-decorator.c @@ -204,6 +204,7 @@ enum { CLICK_ACTION_SHADE, CLICK_ACTION_MAXIMIZE, CLICK_ACTION_RAISE, + CLICK_ACTION_LOWER, CLICK_ACTION_MENU }; @@ -213,7 +214,7 @@ enum { }; #define DOUBLE_CLICK_ACTION_DEFAULT CLICK_ACTION_MAXIMIZE -#define MIDDLE_CLICK_ACTION_DEFAULT CLICK_ACTION_RAISE +#define MIDDLE_CLICK_ACTION_DEFAULT CLICK_ACTION_LOWER #define RIGHT_CLICK_ACTION_DEFAULT CLICK_ACTION_MENU #define WHEEL_ACTION_DEFAULT WHEEL_ACTION_NONE @@ -4702,6 +4703,9 @@ handle_title_button_event (WnckWindow *win, case CLICK_ACTION_RAISE: restack_window (win, Above); break; + case CLICK_ACTION_LOWER: + restack_window (win, Below); + break; case CLICK_ACTION_MENU: action_menu_map (win, event->button, event->time); break; |