Modify

Opened 14 years ago

Closed 14 years ago

#5463 closed enhancement (fixed)

[patch] get rid of window decorations in fullscreen mode

Reported by: cmuelle8 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: fullscreen window decoration F11 Cc:

Description

this patch is especially helpful if you want to use josm on a netbook to have more screen real estate

tested with Windows XP, but the code is pure java / platform independent..

the previous behavior when going to fullscreen was identical to using the maximize button (from a user perspective)

have a nice day,
christian

Attachments (2)

FullscreenToggleAction.java.patch (1.5 KB ) - added by cmuelle8 14 years ago.
have fullscreen mode use the full screen
FullscreenToggleAction.java.2.patch (1.4 KB ) - added by cmuelle8 14 years ago.
use non-exclusive fullscreen mode in windows per default..

Download all attachments as: .zip

Change History (12)

by cmuelle8, 14 years ago

have fullscreen mode use the full screen

comment:1 by bastiK, 14 years ago

Resolution: fixed
Status: newclosed

(In [3535]) applied #5463 (patch by Christian Müller) - get rid of window decorations in fullscreen mode

in reply to:  1 comment:2 by cmuelle8, 14 years ago

Resolution: fixed
Status: closedreopened

Replying to bastiK:

(In [3535]) applied #5463 (patch by Christian Müller) - get rid of window decorations in fullscreen mode

thanks for adding this so quick. unfortunately there is a problem, i just discovered. when popups open, josm gets minimized. this is a very obscure behavior - i don't know if it is just a windows xp problem or if it happens on unix as well, but in it's current form, some code is still missing to have it work nicely..

however, if u click josm in the taskbar to restore the window, everything is as it should be (josm is fullscreen and the respective popup shows up front). sorry for the inconvenience.. do you have an idea, how to fix it? you can trigger the behavior by downloading data (the jmapviewer opens and the app minimizes..)..

greetings

comment:3 by bastiK, 14 years ago

cannot reproduce the problem with ubuntu karmic

comment:4 by bastiK, 14 years ago

Hi,

for MS Windows, it seems to be impossible to display a JDialog on top of the main frame if it is in full screen exclusive mode.

http://stackoverflow.com/questions/1722922/jdialog-not-displaying-when-in-fullscreen-mode

However a "light" version of fullscreen is supposed to work:

        Frame frame = (Frame)Main.parent;
        java.awt.Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();

        frame. setBounds(0,0,dim.width, dim.height);
        frame.dispose();
        frame.setUndecorated(true);
        frame.setResizable(false);
        frame.setVisible(true);

Can you test and prepare a patch?

in reply to:  4 comment:5 by cmuelle8, 14 years ago

Replying to bastiK:

Hi,

for MS Windows, it seems to be impossible to display a JDialog on top of the main frame if it is in full screen exclusive mode.

yeah, it is.. the only way would be using internalframes with a jdesktoppane or jlayeredpane (the java solution to not create new (OS based) windows)..

if the window is undecorated it gets the whole screen by default, so the patch is simple - but you don't get the exclusive, accelerated mode (ok, in windowed mode I don't have this either, so I guess it's fine..)

by cmuelle8, 14 years ago

use non-exclusive fullscreen mode in windows per default..

in reply to:  4 comment:6 by cmuelle8, 14 years ago

ps: tested and works on my side (Windows XP)..

somebody with Vista or 7 should test it as well - maybe bounds or other stuff is needed there..

comment:7 by bastiK, 14 years ago

The bounds stuff is needed when you use simulated (non-exclusive) mode on gnome/linux.

comment:8 by bastiK, 14 years ago

(In [3537]) fix fullscreen by adding simulated mode for windows platorm (patch by Christian Müller) - see #5463 - get rid of window decorations in fullscreen mode

comment:9 by bastiK, 14 years ago

See #5470 for an issue i have with fullscreen.

comment:10 by anonymous, 14 years ago

Resolution: fixed
Status: reopenedclosed

i'll close this one and attach some cosmetic changes to #5470 ..

so the fullscreen issue are more or less solved (of course someone may also port whole of josm to use JDesktopPane or the docking frames framework to use that nitty exclusive mode on windows also, but what's the real gain? :-) )

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.