Bug 640682 - Mouse event issue with certain window managers in some applications in windowed mode
Summary: Mouse event issue with certain window managers in some applications in window...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: SDL
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Petr Pisar
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-06 15:36 UTC by Petr Pisar
Modified: 2012-04-03 15:20 UTC (History)
4 users (show)

Fixed In Version: SDL-1.2.14-3.el6
Doc Type: Bug Fix
Doc Text:
Cause Pressing left button in a SDL application running in a window mode and when using certain window manager (like Fluxbox). Consequence Left-button event is not reported to the SDL application. Fix Window-leave notification dispatching to SDL window has been fixed in case a parent window is not interested in grab/ungrab events to handle window focus changes. Result Button press event is reported to the application even if window manager takes care about grab events.
Clone Of: 556608
Environment:
Last Closed: 2012-04-03 15:20:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix (985 bytes, patch)
2010-10-06 15:39 UTC, Petr Pisar
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0446 0 normal SHIPPED_LIVE SDL bug fix update 2012-04-03 19:16:33 UTC
SDL Simple Directmedia Layer 894 0 None None None Never

Description Petr Pisar 2010-10-06 15:36:56 UTC
+++ This bug was initially created as a clone of Bug #556608 +++

Description of problem:
There is a bug for this in debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565788
And one in Wesnoth:
https://gna.org/bugs/index.php?14770
When I make a development build of Wesnoth on rawhide I see the problem as described in the wesnoth bug. Plain left click doesn't work. Left click with the right mouse button held down does work. I tested this with a version of wesnoth built from source on a rawhide system. I'll recheck with the version of wesnoth inherited from f12 and add a comment on that.

Version-Release number of selected component (if applicable):
SDL-1.2.14-1.fc13.i686

How reproducible:
I didn't do a lot of testing. It happens with openbox, but not with gnome.


--- Additional comment from bruno on 2010-01-18 22:33:45 GMT ---

I tested this some more and the f12 wesnoth inherited by rawhide shows the same issue. The problem did not show up with fvwm.
And I forgot to note, this is only a problem when running in windowed mode. In full screen things work OK.

--- Additional comment from fedora-triage-list on 2010-03-15 14:07:21 GMT ---


This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

--- Additional comment from bruno on 2010-04-08 20:03:45 GMT ---

On the Wesnoth dev list it was reported that Debian has a fix for this (in SDL not Wesnoth).
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565788#19
I look into this some more later to see if we have gotten a fix into SDL yet or if I need to reassign this bug to something SDL related.

--- Additional comment from msaft.cz on 2010-07-30 13:45:43 GMT ---

There is a patch for this from upstream:
http://bugzilla.libsdl.org/show_bug.cgi?id=894

Please apply.

--- Additional comment from ppisar on 2010-08-12 15:48:03 GMT ---

Patch verified with Wesnoth in Fluxbox on F13.

I will look if I can complete other bugs and then I will bump new SDL release.

--- Additional comment from updates on 2010-08-12 16:39:51 GMT ---

SDL-1.2.14-7.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/SDL-1.2.14-7.fc14
----

Maintainer summary:
This bug exposes unexpected mouse button event handling between certain window managers and SDL applications. Despite there is now enterprise-like reproducer, this issue can emerge anytime. This issue has been fixed by upstream using simple patch.

Comment 1 Petr Pisar 2010-10-06 15:39:51 UTC
Created attachment 451922 [details]
Fix

Patch from upstream fixing this issue.

Comment 2 RHEL Program Management 2011-01-07 15:31:04 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 RHEL Program Management 2011-07-05 23:42:26 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 8 Petr Pisar 2012-01-10 17:00:16 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    Pressing left button in a SDL application running in a
    window mode and when using certain window manager
    (like Fluxbox).
Consequence
    Left-button event is not reported to the SDL application.
Fix
    Window-leave notification dispatching to SDL window has
    been fixed in case a parent window is not interested
    in grab/ungrab events to handle window focus changes.
Result
    Button press event is reported to the application even if
    window manager takes care about grab events.

Comment 10 errata-xmlrpc 2012-04-03 15:20:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0446.html


Note You need to log in before you can comment on or make changes to this bug.