After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666457 - xi2: focus problem if running gtk+ app under KDE with left handed mouse
xi2: focus problem if running gtk+ app under KDE with left handed mouse
Status: RESOLVED DUPLICATE of bug 655928
Product: gtk+
Classification: Platform
Component: Class: GdkDevice
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2011-12-18 15:45 UTC by Iain Nicol
Modified: 2011-12-19 04:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Iain Nicol 2011-12-18 15:45:56 UTC
Intro
=====
I run KDE and I have it set to use a left handed mouse.  xev for example
understands the swapped buttons.  However, when I run any gtk+ 3 app,
there are weird focus issues with the mouse.  It's not that gtk+ simply
treats button 1 and 3 the wrong way round, as the following example
shows.

Steps to reproduce
===================
1. Run a left handed KDE session.
2. Run gtk+/tests/testbuttons
3. Mouse down on any GtkButton ("GtkButton 1") with mouse button 1,
   i.e. index finger of left hand.
4. Mouse up with pointer either over the same GtkButton or not
5. Mouse down with mouse button 1 on "GtkButton 2", which shall be any
   GtkButton other than "GtkButton 1"

Expected results
================
The "GtkButton 2" is depressed.

Actual results
==============
The "GtkButton 1" is depressed, as if it has grabbed the focus.

Other
=====
These issues disappear if I switch the KDE mouse setting to right
handed.

It's not entirely clear to me that this is a gtk+ bug and not a KDE bug.
However, I don't encounter the issue in gtk+ 2 apps.  In particular,
only from gtk+ commit c4a5c2ed4b8861f92104f51d9213b0c9f64e26b1 ("Enable
XI2 by default") do I encounter the problem.
Comment 1 Matthias Clasen 2011-12-19 04:57:01 UTC
This was tracked down to an X server bug

*** This bug has been marked as a duplicate of bug 655928 ***