1
0
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:
id
1999-05-23 23:48:08 +00:00
parent 66eeb83d05
commit daaccf6fc9
7 changed files with 30 additions and 11 deletions

View File

@@ -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;