Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 640682

Summary: Mouse event issue with certain window managers in some applications in windowed mode
Product: Red Hat Enterprise Linux 6 Reporter: Petr Pisar <ppisar>
Component: SDLAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: ovasik, ppisar, psplicha, twoerner
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: 556608 Environment:
Last Closed: 2012-04-03 15:20:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix none

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