slackware-current/source/a/upower/patches/0008-linux-Identify-keyboard-pointing-device-combos-as-ke.patch
Patrick J Volkerding dbf5c1c439 Fri Nov 27 06:21:11 UTC 2020
Moved a few dependencies from vtown into the main tree, updated much of the
GNOME stack, and Xfce 4.14 appears in vtown! Thanks much to Robby Workman.
Hope everyone had a good day. Enjoy! :-)
a/upower-0.99.11-x86_64-1.txz:  Upgraded.
d/sassc-3.6.1-x86_64-1.txz:  Added.
d/vala-0.50.2-x86_64-1.txz:  Upgraded.
l/at-spi2-atk-2.38.0-x86_64-1.txz:  Upgraded.
l/at-spi2-core-2.38.0-x86_64-1.txz:  Upgraded.
l/brotli-1.0.9-x86_64-3.txz:  Rebuilt.
  Get rid of unrecognized -R in the pkg-config files.
l/dconf-0.38.0-x86_64-1.txz:  Upgraded.
l/dconf-editor-3.38.2-x86_64-1.txz:  Upgraded.
l/gcr-3.38.0-x86_64-1.txz:  Upgraded.
l/gdk-pixbuf2-2.42.0-x86_64-1.txz:  Upgraded.
l/gdk-pixbuf2-xlib-2.40.2-x86_64-1.txz:  Added.
l/gjs-1.66.1-x86_64-1.txz:  Added.
l/glade-3.38.2-x86_64-1.txz:  Added.
l/glib-networking-2.66.0-x86_64-1.txz:  Upgraded.
l/glib2-2.66.3-x86_64-1.txz:  Upgraded.
l/gobject-introspection-1.66.1-x86_64-1.txz:  Upgraded.
l/gtksourceview3-3.24.11-x86_64-1.txz:  Added.
l/gvfs-1.46.1-x86_64-1.txz:  Upgraded.
l/json-glib-1.6.0-x86_64-1.txz:  Upgraded.
l/librsvg-2.50.2-x86_64-1.txz:  Upgraded.
l/libsass-3.6.4-x86_64-1.txz:  Added.
l/libsoup-2.72.0-x86_64-1.txz:  Upgraded.
l/libwnck3-3.36.0-x86_64-1.txz:  Added.
l/pango-1.48.0-x86_64-1.txz:  Upgraded.
l/pygobject3-3.38.0-x86_64-1.txz:  Upgraded.
l/vte-0.62.1-x86_64-1.txz:  Upgraded.
testing/packages/vtown/deps/libsass-3.6.4-x86_64-1_vtown_1.txz:  Removed.
testing/packages/vtown/deps/sassc-3.6.1-x86_64-1_vtown_1.txz:  Removed.
testing/packages/vtown/deps/upower-0.99.11-x86_64-1_vtown_1.txz:  Removed.
testing/packages/vtown/xfce/Greybird-3.22.12-noarch-1_vtown_1.txz:  Added.
testing/packages/vtown/xfce/elementary-xfce-0.15.1-x86_64-1_vtown_1.txz:  Added.
testing/packages/vtown/xfce/exo-0.12.11-x86_64-2_vtown_1.txz:  Rebuilt.
testing/packages/vtown/xfce/garcon-0.6.4-x86_64-2_vtown_1.txz:  Rebuilt.
testing/packages/vtown/xfce/libxfce4ui-4.14.1-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/libxfce4util-4.14.0-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/mousepad-0.4.2-x86_64-1_vtown_1.txz:  Added.
testing/packages/vtown/xfce/thunar-1.8.16-x86_64-2_vtown_1.txz:  Rebuilt.
testing/packages/vtown/xfce/thunar-volman-0.9.5-x86_64-2_vtown_1.txz:  Rebuilt.
testing/packages/vtown/xfce/tumbler-0.2.9-x86_64-2_vtown_1.txz:  Rebuilt.
testing/packages/vtown/xfce/xfce4-appfinder-4.14.0-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-clipman-plugin-1.6.1-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-dev-tools-4.14.0-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-notifyd-0.6.2-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-panel-4.14.4-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-panel-profiles-1.0.10-x86_64-1_vtown_1.txz:  Added.
testing/packages/vtown/xfce/xfce4-power-manager-1.6.6-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-pulseaudio-plugin-0.4.3-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-screensaver-0.1.11-x86_64-1_vtown_1.txz:  Added.
testing/packages/vtown/xfce/xfce4-screenshooter-1.9.7-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-session-4.14.2-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-settings-4.14.3-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-systemload-plugin-1.2.3-x86_64-2_vtown_1.txz:  Rebuilt.
testing/packages/vtown/xfce/xfce4-taskmanager-1.2.3-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-terminal-0.8.9.2-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-weather-plugin-0.10.2-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfce4-whiskermenu-plugin-2.4.6-x86_64-1_vtown_1.txz:  Added.
testing/packages/vtown/xfce/xfconf-4.14.4-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfdesktop-4.14.3-x86_64-1_vtown_1.txz:  Upgraded.
testing/packages/vtown/xfce/xfwm4-4.14.6-x86_64-1_vtown_1.txz:  Upgraded.
2020-11-27 17:59:51 +01:00

46 lines
1.6 KiB
Diff

From e0b8354e9cf53a271e66a7ba44fd567daeac2416 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 5 May 2020 16:07:31 +0200
Subject: [PATCH 2/3] linux: Identify keyboard/pointing device combos as
keyboards
Rather than using the type of the first sibling device we find, which is
usually the pointing device portion, make sure that keyboard/pointing
device combo devices are identified as keyboards.
---
src/linux/up-device-supply.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index d7e4423..9302119 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -888,7 +888,7 @@ up_device_supply_get_sibling_with_subsystem (GUdevDevice *device,
class[0] = subsystem;
client = g_udev_client_new (class);
devices = g_udev_client_query_by_subsystem (client, subsystem);
- for (l = devices; l != NULL && sibling == NULL; l = l->next) {
+ for (l = devices; l != NULL; l = l->next) {
GUdevDevice *d = l->data;
GUdevDevice *p;
const char *p_path;
@@ -897,8 +897,14 @@ up_device_supply_get_sibling_with_subsystem (GUdevDevice *device,
if (!p)
continue;
p_path = g_udev_device_get_sysfs_path (p);
- if (g_strcmp0 (p_path, parent_path) == 0)
- sibling = g_object_ref (d);
+ if (g_strcmp0 (p_path, parent_path) == 0) {
+ if (sibling != NULL &&
+ g_udev_device_get_property_as_boolean (d, "ID_INPUT_KEYBOARD")) {
+ g_clear_object (&sibling);
+ }
+ if (sibling == NULL)
+ sibling = g_object_ref (d);
+ }
g_object_unref (p);
}
--
2.26.2