wok annotate libsdl/stuff/sdl-1.2.14-fix-mouse-clicking.patch @ rev 21160

Up ufraw (0.22)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 31 15:04:44 2019 +0200 (2019-03-31)
parents
children
rev   line source
slaxemulator@8513 1 --- SDL-1.2.14/src/video/x11/SDL_x11events.c.orig 2010-04-08 11:57:05.003169834 -0700
slaxemulator@8513 2 +++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-08 12:33:51.690926340 -0700
slaxemulator@8513 3 @@ -423,12 +423,15 @@
slaxemulator@8513 4 if ( xevent.xcrossing.mode == NotifyUngrab )
slaxemulator@8513 5 printf("Mode: NotifyUngrab\n");
slaxemulator@8513 6 #endif
slaxemulator@8513 7 - if ( this->input_grab == SDL_GRAB_OFF ) {
slaxemulator@8513 8 - posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
slaxemulator@8513 9 + if ( (xevent.xcrossing.mode != NotifyGrab) &&
slaxemulator@8513 10 + (xevent.xcrossing.mode != NotifyUngrab) ) {
slaxemulator@8513 11 + if ( this->input_grab == SDL_GRAB_OFF ) {
slaxemulator@8513 12 + posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
slaxemulator@8513 13 + }
slaxemulator@8513 14 + posted = SDL_PrivateMouseMotion(0, 0,
slaxemulator@8513 15 + xevent.xcrossing.x,
slaxemulator@8513 16 + xevent.xcrossing.y);
slaxemulator@8513 17 }
slaxemulator@8513 18 - posted = SDL_PrivateMouseMotion(0, 0,
slaxemulator@8513 19 - xevent.xcrossing.x,
slaxemulator@8513 20 - xevent.xcrossing.y);
slaxemulator@8513 21 }
slaxemulator@8513 22 break;
slaxemulator@8513 23