Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2010 17:54:48 GMT
From:      Ilia Skalozubov <skinc@skinc.su>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/150090: [patch] devel/sdl12: Mouse clicking doesn't work with sdl 1.2.14
Message-ID:  <201008291754.o7THsm8F025992@www.freebsd.org>
Resent-Message-ID: <201008291800.o7TI0UdD018602@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         150090
>Category:       ports
>Synopsis:       [patch] devel/sdl12: Mouse clicking doesn't work with sdl 1.2.14
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 29 18:00:30 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Ilia Skalozubov
>Release:        
>Organization:
>Environment:
>Description:
When using SDL 1.2.14, some apps doesn't accept mouse
clicks when running in windowed mode.

Detail descriptions of the problem:
- http://bugzilla.libsdl.org/show_bug.cgi?id=894
- http://gna.org/bugs/index.php?14770
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- src/video/x11/SDL_x11events.c.orig	2010-08-29 20:13:12.455316094 +0300
+++ src/video/x11/SDL_x11events.c	2010-08-29 20:14:46.875763077 +0300
@@ -441,8 +441,10 @@
 if ( xevent.xcrossing.mode == NotifyUngrab )
 printf("Mode: NotifyUngrab\n");
 #endif
-		if ( xevent.xcrossing.detail != NotifyInferior ) {
-			if ( this->input_grab == SDL_GRAB_OFF ) {
+		if ( (xevent.xcrossing.mode != NotifyGrab) &&
+		     (xevent.xcrossing.mode != NotifyUngrab) &&
+		     (xevent.xcrossing.detail != NotifyInferior) ) {
+              		if ( this->input_grab == SDL_GRAB_OFF ) {
 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
 			} else {
 				posted = SDL_PrivateMouseMotion(0, 0,


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008291754.o7THsm8F025992>