mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
cba94da2cf
commit
73d75fa848
@@ -36,7 +36,7 @@
|
||||
#include <math.h>
|
||||
|
||||
/* For getting mouse wheel mappings from WINGs */
|
||||
#include <WINGs/WINGsP.h>
|
||||
#include <WINGs/WINGs.h>
|
||||
|
||||
#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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user