1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

- Added ability to shade/unshade a window using the mouse wheel on the

window titlebar.
- Disabled the window birth zoom effect by default.
This commit is contained in:
dan
2001-10-09 03:35:45 +00:00
parent 4350cf540c
commit 75f790160b
6 changed files with 42 additions and 6 deletions

View File

@@ -34,6 +34,8 @@
#include <stdio.h>
#include <string.h>
/* For getting mouse wheel mappings from WINGs */
#include <WINGs/WINGsP.h>
#include "WindowMaker.h"
#include "GNUstep.h"
@@ -2864,7 +2866,7 @@ titlebarDblClick(WCoreWindow *sender, void *data, XEvent *event)
}
/* maximize window */
if (dir !=0 && !WFLAGP(wwin, no_resizable)) {
if (dir!=0 && !WFLAGP(wwin, no_resizable)) {
int ndir = dir ^ wwin->flags.maximized;
if (wwin->flags.maximized != 0)
wUnmaximizeWindow(wwin);
@@ -2878,6 +2880,10 @@ titlebarDblClick(WCoreWindow *sender, void *data, XEvent *event)
}
} else if (event->xbutton.button==Button2) {
wSelectWindow(wwin, !wwin->flags.selected);
} else if (event->xbutton.button == WINGsConfiguration.mouseWheelUp) {
wShadeWindow(wwin);
} else if (event->xbutton.button == WINGsConfiguration.mouseWheelDown) {
wUnshadeWindow(wwin);
}
}