1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +01:00

wmaker: Moved variables for the Xkb extension into the global namespace

This commit is contained in:
Christophe CURIS
2013-10-10 20:38:24 +02:00
committed by Carlos R. Mafra
parent 81aa311c42
commit 3995130b79
5 changed files with 11 additions and 22 deletions

View File

@@ -71,10 +71,6 @@
/**** Global variables ****/
#ifdef KEEP_XKB_LOCK_STATUS
extern int wXkbSupported;
#endif
#ifdef HAVE_XRANDR
Bool has_randr;
int randr_event_base;
@@ -548,7 +544,7 @@ WScreen *wScreenInit(int screen_number)
/* Only GroupLock doesn't work correctly in my system since right-alt
* can change mode while holding it too - ]d
*/
if (wXkbSupported) {
if (w_global.xext.xkb.supported) {
XkbSelectEvents(dpy, XkbUseCoreKbd, XkbStateNotifyMask, XkbStateNotifyMask);
}
#endif /* KEEP_XKB_LOCK_STATUS */