Commit 6bbd4476 authored by Sam Lantinga's avatar Sam Lantinga

Don't be fooled by unclutter - the mouse isn't really leaving our window

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40497
parent 34a52528
...@@ -196,7 +196,8 @@ if ( xevent.xcrossing.mode == NotifyUngrab ) ...@@ -196,7 +196,8 @@ if ( xevent.xcrossing.mode == NotifyUngrab )
printf("Mode: NotifyUngrab\n"); printf("Mode: NotifyUngrab\n");
#endif #endif
if ( (xevent.xcrossing.mode != NotifyGrab) && if ( (xevent.xcrossing.mode != NotifyGrab) &&
(xevent.xcrossing.mode != NotifyUngrab) ) { (xevent.xcrossing.mode != NotifyUngrab) &&
(xevent.xcrossing.detail != NotifyInferior) ) {
if ( this->input_grab == SDL_GRAB_OFF ) { if ( this->input_grab == SDL_GRAB_OFF ) {
posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment