[mutter/wip/tablet-protocol-v2: 140/149] backends: Implement the "show osd" pad action



commit 05a5c86203665b38f270c5145b817c65173d7c06
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 29 13:52:52 2016 +0200

    backends: Implement the "show osd" pad action
    
    Just call back into meta_display_request_show_osd().

 src/backends/meta-input-settings.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c
index 38f1566..97d7fab 100644
--- a/src/backends/meta-input-settings.c
+++ b/src/backends/meta-input-settings.c
@@ -1493,8 +1493,11 @@ meta_input_settings_handle_pad_button (MetaInputSettings  *input_settings,
       if (is_press)
         meta_input_settings_cycle_tablet_output (input_settings, pad);
       return TRUE;
-    case G_DESKTOP_PAD_BUTTON_ACTION_KEYBINDING:
     case G_DESKTOP_PAD_BUTTON_ACTION_HELP:
+      if (is_press)
+        meta_display_request_pad_osd (meta_get_display (), pad, FALSE);
+      return TRUE;
+    case G_DESKTOP_PAD_BUTTON_ACTION_KEYBINDING:
     case G_DESKTOP_PAD_BUTTON_ACTION_NONE:
     default:
       return FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]