Re: [hatari-devel] Feedback SDL2 support |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Thomas Huth <th.huth@xxxxxx>
- Subject: Re: [hatari-devel] Feedback SDL2 support
- From: David Savinkoff <dsavnkff@xxxxxxxxx>
- Date: Sun, 11 Oct 2015 10:06:53 -0600 (MDT)
- Cc: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=telus.net; s=neo; t=1444579613; bh=aO6pwMojzSYe6rLCimH31Q80Vw/bbXYz3cXcKU/OSMQ=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding; b=koJ88W3Awes8AYddsNXfqD+JByL/dSeU++MGTGtDiMZbq481zTH94hBt/Zd7h5oIT Q/flX5HZTTIKhRYzrKgMY6E9FumlLW2yEMrOttBTmQG/lrclVrdnemiYxRj3FCPjjM IS1fkYIpqVtL3D7NORhu5wkA7cQRxwFLL3/MyYvfeO6qgsecRcydNqw56oFsVcpPGr i0EGFghTxvZLVl41QsRk4ba2J+gAxJ4z2pTZKsu4p9DHnBIycdQM8Cj4iMjEB3Vic9 NGQ3rZt5dybUgNq+pA4TzIeOsshu1ZoniDQjDUbZA1Y0FOYmPBFDRRVH9eaTeosZld Xpzv4mWXShtjA==
- Thread-index: 7f9td2QrPNyEaLU3QJhDK4M0C7s0+A==
- Thread-topic: Feedback SDL2 support
----- Thomas Huth wrote:
> Am Sun, 24 May 2015 14:36:26 -0600 (MDT)
>
> Hi David,
>
> sorry for the very late reply, ... finally I had some spare minutes to
> look into this...
>
> schrieb David Savinkoff <dsavnkff@xxxxxxxxx>:
>
> > ----- David Savinkoff wrote:
> > >
> > > When I toggle SDL2 fullscreen <F11>, the mouse cursor gets
> > > repositioned because of the different screen sizes. The mouse
> > > cursor doesn't always get repositioned in a manner that I
> > > understand... probably in an incorrect manner. This probably causes
> > > the host computer to change 'window focus' when changing the screen
> > > sizes; giving bogus coordinates and wreaking havoc.
> > >
> > > Here is a possible clue that makes a slight difference:
> > >
> > > (hatari/src/main.c)
> > >
> > > /**
> > > * Set mouse pointer to new coordinates and set flag to ignore the
> > > mouse event
> > > * that is generated by SDL_WarpMouse().
> > > */
> > > void Main_WarpMouse(int x, int y)
> > > {
> > > #if WITH_SDL2
> > > SDL_WarpMouseInWindow(sdlWindow, x, y);
> > > #else
> > > SDL_WarpMouse(x, y);
> > > bIgnoreNextMouseMotion = true;
> > > #endif
> > > // bIgnoreNextMouseMotion = true; ^moved up^ **NOTICE
> > > HERE**
> > >
> > > }
> > >
> > > ***
> > > Hopefully this info will be helpful. Note that this does not
> > > solve the problem.
>
> Question: Are you running in Falcon or TT mode when this happens, or in
> ST / STE mode? Or does it happen in both modes?
>
> > The following was noticed on Hatari(old core), SDL2, CentOS6
> > (The laptop where Hatari SDL2 works great).
> >
> > The good
> > 1) run hatari and position mouse in approximately center of hatari
> > screen 2) press F11 and notice that mouse is correctly in the same
> > relative spot 3) toggle F11 a few times and note that all works
> > properly as expected.
> >
> > The bad
> > 4) run hatari and position mouse in Top Left of hatari screen.
> > 5) press F11 and notice that mouse is incorrectly GONE. (repeat a few
> > times)
>
> Where did you position your Hatari window before switching to
> fullscreen mode? In the center or in a corner of the screen?
> Also, was this in Falcon/TT mode or in ST/STE mode?
>
> > The ugly
> > 6) run hatari and note that the hatari window is centered on the
> > desktop. 7) move the hatari window.
> > 8) press F11 and note that hatari is full screen.
> > 9) press F11 and note that the hatari window is !!! centered on the
> > desktop. 10) repeat (7) to (9) to note that the hatari window is
> > erroneously re-centered.
>
> At least this works fine for me. I think this depends on your Window
> manager. What kind of desktop environment are you using?
>
> Thomas
Hi Thomas,
Thanks. It has been a while; I will re-investigate this and have
answers by tuesday. I remember that I had differing results on
CentOS 5 and CentOS 6. I can probably compile new versions
of SDL2 by now. Also, Hatari has been improved too.