From 75f790160b25eb8c1a09d9ca0d4036db51def426 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 9 Oct 2001 03:35:45 +0000 Subject: [PATCH] - Added ability to shade/unshade a window using the mouse wheel on the window titlebar. - Disabled the window birth zoom effect by default. --- ChangeLog | 8 ++++++++ NEWS | 22 ++++++++++++++++++++++ configure.ac | 2 +- configure.in | 2 +- src/wconfig.h.in | 6 +++--- src/window.c | 8 +++++++- 6 files changed, 42 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9012dd1d..91a55725 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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: ............................. diff --git a/NEWS b/NEWS index ae70a01a..25b8d89f 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,28 @@ 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 New dock option diff --git a/configure.ac b/configure.ac index 1414f063..53b27442 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/configure.in b/configure.in index 1414f063..53b27442 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/wconfig.h.in b/src/wconfig.h.in index 707b82e2..6391b5b4 100644 --- a/src/wconfig.h.in +++ b/src/wconfig.h.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 diff --git a/src/window.c b/src/window.c index d551d2da..7f4bd8fd 100644 --- a/src/window.c +++ b/src/window.c @@ -34,6 +34,8 @@ #include #include +/* For getting mouse wheel mappings from WINGs */ +#include #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); } }