emacs-diffs
[Top][All Lists]
Advanced

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

master c36741f9c5: Translate more modifiers to GDK ones in xwidgets


From: Po Lu
Subject: master c36741f9c5: Translate more modifiers to GDK ones in xwidgets
Date: Tue, 4 Jan 2022 06:58:06 -0500 (EST)

branch: master
commit c36741f9c5f58f4efd80a1e8918a8356e9d0100f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Translate more modifiers to GDK ones in xwidgets
    
    * src/xwidget.c (xw_translate_x_modifiers): Also handle Control
    and ShiftMask.
---
 src/xwidget.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xwidget.c b/src/xwidget.c
index bfb666e565..24dafa7d3c 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -245,6 +245,10 @@ xw_translate_x_modifiers (struct x_display_info *dpyinfo,
     mods |= GDK_SUPER_MASK;
   if (modifiers & dpyinfo->hyper_mod_mask)
     mods |= GDK_HYPER_MASK;
+  if (modifiers & ControlMask)
+    mods |= GDK_CONTROL_MASK;
+  if (modifiers & ShiftMask)
+    mods |= GDK_SHIFT_MASK;
 
   return mods;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]