mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
wmaker: Moved global var with list of cursors to the preferences variable
As the cursor choice for each action is actually a user choice, it is logical to put this into the structure, instead of a poorly defined 'extern' in every file.
This commit is contained in:
committed by
Carlos R. Mafra
parent
2c20413831
commit
b48b3370e2
@@ -114,7 +114,6 @@ typedef struct InspectorPanel {
|
||||
unsigned int choosingIcon:1;
|
||||
} InspectorPanel;
|
||||
|
||||
extern Cursor wCursor[WCUR_LAST];
|
||||
extern WDDomain *WDWindowAttributes;
|
||||
|
||||
static InspectorPanel *panelList = NULL;
|
||||
@@ -1017,7 +1016,7 @@ static void selectWindow(WMWidget *bPtr, void *data)
|
||||
|
||||
if (XGrabPointer(dpy, scr->root_win, True,
|
||||
ButtonPressMask, GrabModeAsync, GrabModeAsync, None,
|
||||
wCursor[WCUR_SELECT], CurrentTime) != GrabSuccess) {
|
||||
wPreferences.cursor[WCUR_SELECT], CurrentTime) != GrabSuccess) {
|
||||
wwarning("could not grab mouse pointer");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user