[mutter] display: Add accessor function for ignored_modifier_mask
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] display: Add accessor function for ignored_modifier_mask
- Date: Tue, 13 Mar 2012 19:34:07 +0000 (UTC)
commit 5361e0259f8862f8d462ad9a676af68dd8607c88
Author: Florian MÃllner <fmuellner gnome org>
Date: Tue Mar 13 16:07:59 2012 +0100
display: Add accessor function for ignored_modifier_mask
Some modifiers like NumLock and ScrollLock don't make sense in
keybindings, which is why we ignore them when matching keybindings
to events. We should do the same in Javascript, so add an accessor
function.
https://bugzilla.gnome.org/show_bug.cgi?id=665215
src/core/display.c | 13 +++++++++++++
src/meta/display.h | 2 ++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 267903c..5a5b8ad 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1407,6 +1407,19 @@ meta_display_get_current_time_roundtrip (MetaDisplay *display)
}
/**
+ * meta_display_get_ignored_modifier_mask:
+ * @display: a #MetaDisplay
+ *
+ * Returns: a mask of modifiers that should be ignored
+ * when matching keybindings to events
+ */
+unsigned int
+meta_display_get_ignored_modifier_mask (MetaDisplay *display)
+{
+ return display->ignored_modifier_mask;
+}
+
+/**
* meta_display_add_ignored_crossing_serial:
* @display: a #MetaDisplay
* @serial: the serial to ignore
diff --git a/src/meta/display.h b/src/meta/display.h
index a9edc00..d68984f 100644
--- a/src/meta/display.h
+++ b/src/meta/display.h
@@ -91,6 +91,8 @@ guint32 meta_display_get_last_user_time (MetaDisplay *display);
guint32 meta_display_get_current_time (MetaDisplay *display);
guint32 meta_display_get_current_time_roundtrip (MetaDisplay *display);
+unsigned int meta_display_get_ignored_modifier_mask (MetaDisplay *display);
+
GList* meta_display_get_tab_list (MetaDisplay *display,
MetaTabList type,
MetaScreen *screen,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]