[mate-settings-daemon] 01/03: debian/patches: Add 1002_fix-randr-applet-dying-on-restart.patch. Complete the fix started in 1001_request_keyboard_event_from_global_keybindings.diff.

Mike Gabriel sunweaver at debian.org
Tue Oct 17 15:57:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository mate-settings-daemon.

commit f0f347a0c9654babae4ef185c0f8bb56704b52a0
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Oct 17 17:51:43 2017 +0200

    debian/patches: Add 1002_fix-randr-applet-dying-on-restart.patch. Complete the fix started in 1001_request_keyboard_event_from_global_keybindings.diff.
---
 .../1002_fix-randr-applet-dying-on-restart.patch   | 52 ++++++++++++++++++++++
 debian/patches/series                              |  2 +
 2 files changed, 54 insertions(+)

diff --git a/debian/patches/1002_fix-randr-applet-dying-on-restart.patch b/debian/patches/1002_fix-randr-applet-dying-on-restart.patch
new file mode 100644
index 0000000..0b37b7f
--- /dev/null
+++ b/debian/patches/1002_fix-randr-applet-dying-on-restart.patch
@@ -0,0 +1,52 @@
+From 603e331e6cf480d2f9aed1e7d096333df39215aa Mon Sep 17 00:00:00 2001
+From: Victor Kareh <vkareh at vkareh.net>
+Date: Mon, 26 Jun 2017 14:11:19 -0400
+Subject: [PATCH] Fix Xrandr applet dying on restart
+
+When setting `KeyPressMask` as a reportable event for all windows, the
+keybinding for `Fn+F7` in Xrandr seems to fail. This change adds, rather
+than overrides, the `KeyPressMask` as a reportable event for the
+corresponding window.
+
+Fixes #180
+---
+ plugins/keybindings/msd-keybindings-manager.c | 13 +++++++++++--
+ 1 file changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/plugins/keybindings/msd-keybindings-manager.c b/plugins/keybindings/msd-keybindings-manager.c
+index f2a1c00..c022547 100644
+--- a/plugins/keybindings/msd-keybindings-manager.c
++++ b/plugins/keybindings/msd-keybindings-manager.c
+@@ -541,21 +541,30 @@ msd_keybindings_manager_start (MsdKeybindingsManager *manager,
+         GdkWindow   *window;
+         int          screen_num;
+         int          i;
++        Display     *xdpy;
++        Window       xwindow;
++        XWindowAttributes atts;
+ 
+         g_debug ("Starting keybindings manager");
+         mate_settings_profile_start (NULL);
+ 
+         dpy = gdk_display_get_default ();
++        xdpy = GDK_DISPLAY_XDISPLAY (dpy);
+         screen_num = gdk_display_get_n_screens (dpy);
+ 
+         for (i = 0; i < screen_num; i++) {
+                 screen = gdk_display_get_screen (dpy, i);
+-                window = gdk_screen_get_root_window(screen);
++                window = gdk_screen_get_root_window (screen);
++                xwindow = GDK_WINDOW_XID (window);
++
+                 gdk_window_add_filter (window,
+                                        (GdkFilterFunc) keybindings_filter,
+                                        manager);
++
+                 gdk_error_trap_push ();
+-                XSelectInput(GDK_DISPLAY_XDISPLAY(dpy), GDK_WINDOW_XID(window), KeyPressMask);
++                /* Add KeyPressMask to the currently reportable event masks */
++                XGetWindowAttributes (xdpy, xwindow, &atts);
++                XSelectInput (xdpy, xwindow, atts.your_event_mask | KeyPressMask);
+                 gdk_error_trap_pop_ignored ();
+         }
+         manager->priv->screens = get_screens_list ();
diff --git a/debian/patches/series b/debian/patches/series
index b921a73..88a755a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
 1000_global_menu_support.diff
 1001_request_keyboard_event_from_global_keybindings.diff
+1002_fix-randr-applet-dying-on-restart.patch
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-settings-daemon.git



More information about the pkg-mate-commits mailing list