mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 22:28:02 +01:00
wmaker: Moved variables for the XRandR extension into the global namespace
This commit is contained in:
committed by
Carlos R. Mafra
parent
3995130b79
commit
6dcfdd072b
@@ -71,11 +71,6 @@
|
||||
|
||||
/**** Global variables ****/
|
||||
|
||||
#ifdef HAVE_XRANDR
|
||||
Bool has_randr;
|
||||
int randr_event_base;
|
||||
#endif
|
||||
|
||||
extern WDDomain *WDWindowMaker;
|
||||
|
||||
/**** Local ****/
|
||||
@@ -550,7 +545,7 @@ WScreen *wScreenInit(int screen_number)
|
||||
#endif /* KEEP_XKB_LOCK_STATUS */
|
||||
|
||||
#ifdef HAVE_XRANDR
|
||||
if (has_randr)
|
||||
if (w_global.xext.randr.supported)
|
||||
XRRSelectInput(dpy, scr->root_win, RRScreenChangeNotifyMask);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user