1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +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

@@ -1,3 +1,11 @@
Changes since version 0.70.0:
.............................
- Disabled window birth animation by default (while it was ok with normal
windows, it was very annoying with menus editing in WPrefs.app)
- Added ability to shade/unshade a window using the mouse wheel.
Changes since version 0.65.1: Changes since version 0.65.1:
............................. .............................

22
NEWS
View File

@@ -2,6 +2,28 @@
NEWS for veteran Window Maker users NEWS for veteran Window Maker users
----------------------------------- -----------------------------------
--- 0.70.1
Shading/Unshading windows using mouse wheel on their titlebar
---------------------------------------------------------
In addition to the known methods of shading/unshading a window, one can now
do this by using the mouse wheel on the window's titlebar. The mouse events
are interpreted via a mapping in the global WINGs configuration file,
WMGLOBAL, by the MouseWheelUp and MouseWheelDown directives which will do
shading and unshading respectfully.
However, to avoid unwanted triggers of shading/unshading the window, two
consecutive mouse wheel events in the same direction are required. The
trigger won't occur if the events are separated by more than a double-click's
worth of time, which is technically speaking like making a double-click with
the button that corresponds to the mouse wheel direction.
Practically speaking, this means that you have to move the mouse wheel up
or down quickly, like when you want to quickly scroll over something big.
--- 0.70.0 --- 0.70.0
New dock option New dock option

View File

@@ -15,7 +15,7 @@ AC_INIT(src/WindowMaker.h)
AM_INIT_AUTOMAKE(WindowMaker, 0.70.0) AM_INIT_AUTOMAKE(WindowMaker, 0.70.1)
AM_PROG_LIBTOOL AM_PROG_LIBTOOL

View File

@@ -15,7 +15,7 @@ AC_INIT(src/WindowMaker.h)
AM_INIT_AUTOMAKE(WindowMaker, 0.70.0) AM_INIT_AUTOMAKE(WindowMaker, 0.70.1)
AM_PROG_LIBTOOL AM_PROG_LIBTOOL

View File

@@ -201,12 +201,12 @@
#undef ICON_KABOOM_EXTRA #undef ICON_KABOOM_EXTRA
/* /*
* #undef if you dont want the window creation animation when superfluous * #define if you want the window creation animation when superfluous
* is enabled. * is enabled. Only enable one of them.
*/ */
#undef WINDOW_BIRTH_ZOOM #undef WINDOW_BIRTH_ZOOM
#define WINDOW_BIRTH_ZOOM2 #undef WINDOW_BIRTH_ZOOM2
/* /*
* whether arrow drawing in clip buttons should be gradiented * whether arrow drawing in clip buttons should be gradiented

View File

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