[Xfce4-commits] [xfce/xfce4-panel] 02/03: Workaround for xinput2's subpixel handling (LP #1795135)

noreply at xfce.org noreply at xfce.org
Tue Oct 23 23:50:29 CEST 2018


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit e56e8699e271cea209f5b283421952d9035ad2b5
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Oct 23 23:40:53 2018 +0200

    Workaround for xinput2's subpixel handling (LP #1795135)
    
    This xinput2 subpixel handling results in continuous firing of
    enter/leave-notify events when the panel is at 0x0 and the pointer is a
    y/x=0. The actual coordinates returned by xorg can be even below 0, so
    e.g. -0.67823, thereby triggering a leave-notify event.
    This problem has to be tackled within xorg, clamping the subpixel
    coordinates at least at the lower maxima.
---
 panel/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/panel/main.c b/panel/main.c
index 0b02507..5f6ff08 100644
--- a/panel/main.c
+++ b/panel/main.c
@@ -254,6 +254,10 @@ main (gint argc, gchar **argv)
   g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING);
 #endif
 
+  /* Workaround for xinput2's subpixel handling triggering unwanted enter/leave-notify events:
+   * https://bugs.freedesktop.org/show_bug.cgi?id=92681 */
+  g_setenv ("GDK_CORE_DEVICE_EVENTS", "1", TRUE);
+
   /* parse context options */
   context = g_option_context_new (_("[ARGUMENTS...]"));
   g_option_context_add_main_entries (context, option_entries, GETTEXT_PACKAGE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list