mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-25 07:32:36 +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:
@@ -201,12 +201,12 @@
|
||||
#undef ICON_KABOOM_EXTRA
|
||||
|
||||
/*
|
||||
* #undef if you dont want the window creation animation when superfluous
|
||||
* is enabled.
|
||||
* #define if you want the window creation animation when superfluous
|
||||
* is enabled. Only enable one of them.
|
||||
*/
|
||||
#undef WINDOW_BIRTH_ZOOM
|
||||
|
||||
#define WINDOW_BIRTH_ZOOM2
|
||||
#undef WINDOW_BIRTH_ZOOM2
|
||||
|
||||
/*
|
||||
* whether arrow drawing in clip buttons should be gradiented
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user