summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-05 00:37:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-05 23:43:41 -0400
commit416ec580dc457e8bfc645fd364a14aaab637f47d (patch)
tree46f08f6cae0323f89afa0fa5e01a0e1ed9bfb04e /gdk/gdkdisplay.c
parentee14be8ac1072b32e260d45b24434b92b385a0b3 (diff)
downloadgtk+-416ec580dc457e8bfc645fd364a14aaab637f47d.tar.gz
gdk: Move modifier mask api to GdkDisplay
GdkKeymap is on the way out.
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r--gdk/gdkdisplay.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index e402a929d1..ce3963a542 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1711,3 +1711,10 @@ gdk_display_set_cursor_theme (GdkDisplay *display,
if (GDK_DISPLAY_GET_CLASS (display)->set_cursor_theme)
GDK_DISPLAY_GET_CLASS (display)->set_cursor_theme (display, name, size);
}
+
+GdkModifierType
+gdk_display_get_modifier_mask (GdkDisplay *display,
+ GdkModifierIntent intent)
+{
+ return gdk_keymap_get_modifier_mask (gdk_display_get_keymap (display), intent);
+}