mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 13:28:05 +01:00
automatic hide language button if window is not focusable.
This commit is contained in:
@@ -97,6 +97,11 @@ extern Bool wShapeSupported;
|
||||
extern int wShapeEventBase;
|
||||
#endif
|
||||
|
||||
#ifdef KEEP_XKB_LOCK_STATUS
|
||||
extern Bool wXkbSupported;
|
||||
extern int wXkbEventBase;
|
||||
#endif
|
||||
|
||||
/* contexts */
|
||||
extern XContext wWinContext;
|
||||
extern XContext wAppWinContext;
|
||||
@@ -793,6 +798,14 @@ StartUp(Bool defaultScreenOnly)
|
||||
/* ignore j */
|
||||
wShapeSupported = XShapeQueryExtension(dpy, &wShapeEventBase, &j);
|
||||
#endif
|
||||
|
||||
#ifdef KEEP_XKB_LOCK_STATUS
|
||||
wXkbSupported = XkbQueryExtension(dpy, NULL, &wXkbEventBase, NULL, NULL, NULL);
|
||||
if(wPreferences.modelock && !wXkbSupported) {
|
||||
wwarning(_("XKB is not supported. KbdModeLock is automatically disabled."));
|
||||
wPreferences.modelock = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (defaultScreenOnly) {
|
||||
max = 1;
|
||||
|
||||
Reference in New Issue
Block a user