Andriy Kulchytskyy wrote:
Hello freevo-users,
I am running X in dual screen setup (NO Xinerama). One screen for TV, other for monitor.
Freevo is started on screen TV with this script: DISPLAY=0.1 export DISPLAY freevo&
Problem is when starting freevo in fullscreen mode the mouse cursor is locked on screen TV and there is no way to move mouse cursor on monitor screen.
It look's like the problem is on SDL layer. I have tried set SDL_NOMOUSE=1
to disable mouse, but look's like it doesn't work.
Any ideas how to fix it?
Wish I could help Andiry, but I've been having the same problem for the last 2 weeks (and nobody cares enough to help me solve it either). I've checked the SDL forums, mailing lists, etc, and they all say it's a problem with Freevo's implementation. So I guess we're just falling through the cracks.
Please, lose the whiny attitude, we DO care. Not a lot of people have this setup to test or debug so you may have to learn to dig through some code.
Freevo doesn't explicitly do anything with the mouse, except for hide the pointer, we don't support mouse input. So, the SDL guys say it must be in Freevo's implimentation. I guess that leaves pygame since that's what's in between.
Try this patch to pygame. I can't test it at all but it compiles on my machine. This will make pygame's mouse module bail on init if SDL_NOMOUSE is set. This may make other bad things happen I don't know. If so you will have to find somewhere else in pygame to do this. When pygame.init() is called it just calls init() on some other pygame modules. I think we call pygame.init() (src/osd.py) but instead maybe we could call pygame.display.init() and init() on anything else we need (explicitly). I seem to remember doing this before but running into problems.
Index: src/mouse.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/games/pygame/src/mouse.c,v
retrieving revision 1.11
diff -u -r1.11 mouse.c
--- src/mouse.c 23 Oct 2003 17:17:17 -0000 1.11
+++ src/mouse.c 23 Feb 2005 14:28:28 -0000
@@ -340,6 +340,9 @@
PYGAME_EXPORT
void initmouse(void)
{
+ if (getenv("SDL_NOMOUSE") != NULL)
+ return;
+
PyObject *module, *dict;/* create the module */
good luck, -Rob
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users
