wok-6.x view libsdl/stuff/sdl-1.2.14-fix-mouse-clicking.patch @ rev 23042

gcc83-lib-base: add /usr/libgcc83/libstdc++.la
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 05 12:13:42 2020 +0100 (2020-03-05)
parents
children
line source
1 --- SDL-1.2.14/src/video/x11/SDL_x11events.c.orig 2010-04-08 11:57:05.003169834 -0700
2 +++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-08 12:33:51.690926340 -0700
3 @@ -423,12 +423,15 @@
4 if ( xevent.xcrossing.mode == NotifyUngrab )
5 printf("Mode: NotifyUngrab\n");
6 #endif
7 - if ( this->input_grab == SDL_GRAB_OFF ) {
8 - posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
9 + if ( (xevent.xcrossing.mode != NotifyGrab) &&
10 + (xevent.xcrossing.mode != NotifyUngrab) ) {
11 + if ( this->input_grab == SDL_GRAB_OFF ) {
12 + posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
13 + }
14 + posted = SDL_PrivateMouseMotion(0, 0,
15 + xevent.xcrossing.x,
16 + xevent.xcrossing.y);
17 }
18 - posted = SDL_PrivateMouseMotion(0, 0,
19 - xevent.xcrossing.x,
20 - xevent.xcrossing.y);
21 }
22 break;