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

ochosi pushed a 
commit to branch 
master
in repository xfce/xfce4-panel.

commit e56e8699e271cea209f5b283421952d9035ad2b5
Author: Simon Steinbeiss <[email protected]>
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.
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to