View previous topic :: View next topic |
Author |
Message |
hrnick Guru
Joined: 31 Aug 2002 Posts: 425 Location: Sweden
|
Posted: Tue Sep 20, 2011 1:05 pm Post subject: Problem with java and fullscreen exclusive mode |
|
|
I'm trying to implement a fullscreen function in a java program using exclusive mode. I've tried the example found at http://www.java2s.com/Code/Java/2D-Graphics-GUI/FullscreenDisplayModeTest.htm but have a problem with the mouse. If I move the cursor to the right after changing resolution (to a lower one) the cursor disappears outside of the screen. Moving the mouse to the left doesn't make it appear again. It seems as if only the top left corner of the screen is used for the window in some way. No MouseEvents are generated when moving the mouse once the cursor has disappeared.
I don't have this problem in Windows or OSX. I've also done some testing on a computer running CentOS (using Gnome 2.16.0 or KDE 3.5.4 on xorg-server 1.1.1) where everything works as expected.
I'm running FVWM (but I've tried running X without loading a window manager), java3d v1.5.2 and I've tried both sun-jdk-1.6.0.26 and icedtea-7.1.14 (found in the java overlay). I've also installed Xfce and Gnome to see if it would make a difference but it didn't.
Any ideas what could be wrong? |
|
Back to top |
|
|
hrnick Guru
Joined: 31 Aug 2002 Posts: 425 Location: Sweden
|
Posted: Sun Sep 25, 2011 6:44 pm Post subject: |
|
|
It seems as if my dual screen causes the problem. Commenting one of the screens in xorg.conf solves the problem. It would be nice if it could work with both screens though, any ideas if it's possible? |
|
Back to top |
|
|
|