From 73d75fa848ce44ce3727de6018f991242c1fad10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Tue, 8 Jan 2013 16:58:03 +0100 Subject: [PATCH] Don't access to private WINGs info From the BALATON Zoltan comment: If the P in WINGsP.h stands for Private then no files outside of WINGs should include it. If WINGsConfiguration is an internal structure of WINGs then only accessor methods should be used outside of WINGs. This patch uses the new functions to read the WINGs configuration, not using the internal library data. --- src/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window.c b/src/window.c index 47d280c3..6c2ae26e 100644 --- a/src/window.c +++ b/src/window.c @@ -36,7 +36,7 @@ #include /* For getting mouse wheel mappings from WINGs */ -#include +#include #include "WindowMaker.h" #include "GNUstep.h" @@ -2735,9 +2735,9 @@ static void titlebarDblClick(WCoreWindow *sender, void *data, XEvent *event) wHideOtherApplications(wwin); } else if (event->xbutton.button == Button2) { wSelectWindow(wwin, !wwin->flags.selected); - } else if (event->xbutton.button == WINGsConfiguration.mouseWheelUp) { + } else if (event->xbutton.button == W_getconf_mouseWheelUp()) { wShadeWindow(wwin); - } else if (event->xbutton.button == WINGsConfiguration.mouseWheelDown) { + } else if (event->xbutton.button == W_getconf_mouseWheelDown()) { wUnshadeWindow(wwin); } }