diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-05-25 18:38:44 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-05-25 18:38:44 -0400 |
commit | bd4609b14042a91646cd9057764eecfbc6faf42b (patch) | |
tree | 8721405d2b45a998f87cccc672b4070780907fb8 /gdk/gdk.c | |
parent | a538f639b69a39d7bb85b39af2dfd296d28fc0aa (diff) | |
download | gtk+-bd4609b14042a91646cd9057764eecfbc6faf42b.tar.gz |
Merge the xi2-for-master branch
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r-- | gdk/gdk.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -787,5 +787,28 @@ gdk_set_program_class (const char *program_class) gdk_progclass = g_strdup (program_class); } +/** + * gdk_enable_multidevice: + * + * Enables multidevice support in GDK. This call must happen prior + * to gdk_display_open(), gtk_init(), gtk_init_with_args() or + * gtk_init_check() in order to take effect. + * + * Note that individual #GdkWindow<!-- -->s still need to explicitly + * enable multidevice awareness through gdk_window_set_support_multidevice(). + * + * This function must be called before initializing GDK. + * + * Since: 3.0 + **/ +void +gdk_enable_multidevice (void) +{ + if (gdk_initialized) + return; + + _gdk_enable_multidevice = TRUE; +} + #define __GDK_C__ #include "gdkaliasdef.c" |