+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
+ If both Shift and CapsLock pressed, ignore the shift only for
+ letters (that would have been affected by the CapsLock). (#139095)
+
+ * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
+ seems to be even buggier now than it used to be. (#138341)
+ Initialize _gdk_input_ignore_wintab to TRUE.
+
+ * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
+ GDK_USE_WINTAB environment variable to turn on tablet support.
+
2004-04-09 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
+ If both Shift and CapsLock pressed, ignore the shift only for
+ letters (that would have been affected by the CapsLock). (#139095)
+
+ * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
+ seems to be even buggier now than it used to be. (#138341)
+ Initialize _gdk_input_ignore_wintab to TRUE.
+
+ * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
+ GDK_USE_WINTAB environment variable to turn on tablet support.
+
2004-04-09 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
+ If both Shift and CapsLock pressed, ignore the shift only for
+ letters (that would have been affected by the CapsLock). (#139095)
+
+ * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
+ seems to be even buggier now than it used to be. (#138341)
+ Initialize _gdk_input_ignore_wintab to TRUE.
+
+ * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
+ GDK_USE_WINTAB environment variable to turn on tablet support.
+
2004-04-09 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
+ If both Shift and CapsLock pressed, ignore the shift only for
+ letters (that would have been affected by the CapsLock). (#139095)
+
+ * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
+ seems to be even buggier now than it used to be. (#138341)
+ Initialize _gdk_input_ignore_wintab to TRUE.
+
+ * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
+ GDK_USE_WINTAB environment variable to turn on tablet support.
+
2004-04-09 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
+2004-04-10 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
+ If both Shift and CapsLock pressed, ignore the shift only for
+ letters (that would have been affected by the CapsLock). (#139095)
+
+ * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
+ seems to be even buggier now than it used to be. (#138341)
+ Initialize _gdk_input_ignore_wintab to TRUE.
+
+ * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
+ GDK_USE_WINTAB environment variable to turn on tablet support.
+
2004-04-09 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
DWORD _windows_version;
-gint _gdk_input_ignore_wintab = FALSE;
+gint _gdk_input_ignore_wintab = TRUE;
gint _gdk_max_colors = 0;
if (group < 0 || group >= 2)
return FALSE;
- if ((state & GDK_SHIFT_MASK) && (state & GDK_LOCK_MASK))
- shift_level = 0; /* shift disables caps lock */
+ update_keymap ();
+
+ keyvals = keysym_tab + hardware_keycode*4;
+
+ if ((state & GDK_SHIFT_MASK) &&
+ (state & GDK_LOCK_MASK) &&
+ keyvals[group*2 + 1] == gdk_keyval_to_upper (keyvals[group*2 + 0]))
+ /* Shift disables caps lock */
+ shift_level = 0;
else if (state & GDK_SHIFT_MASK)
shift_level = 1;
else
shift_level = 0;
- update_keymap ();
-
- keyvals = keysym_tab + hardware_keycode*4;
-
/* Drop group and shift if there are no keysymbols on
* the key for those.
*/
(GdkArgFunc) NULL},
{ "ignore-wintab", GDK_ARG_BOOL, &_gdk_input_ignore_wintab,
(GdkArgFunc) NULL},
+ { "use-wintab", GDK_ARG_NOBOOL, &_gdk_input_ignore_wintab,
+ (GdkArgFunc) NULL},
{ "max-colors", GDK_ARG_INT, &_gdk_max_colors, (GdkArgFunc) NULL},
{ NULL }
};
#ifdef HAVE_WINTAB
if (getenv ("GDK_IGNORE_WINTAB") != NULL)
_gdk_input_ignore_wintab = TRUE;
+ else if (getenv ("GDK_USE_WINTAB") != NULL)
+ _gdk_input_ignore_wintab = FALSE;
#endif
if (gdk_synchronize)