wok-6.x annotate libsdl/stuff/sdl-1.2.14-fix-mouse-clicking.patch @ rev 13685
btrfs-progs: do not create 2 snapshots simultaneously...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 03 11:12:37 2012 +0100 (2012-12-03) |
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 |