Photonic3D icon indicating copy to clipboard operation
Photonic3D copied to clipboard

Windows printing screen doesn't always open in foreground

Open kloknibor opened this issue 8 years ago • 7 comments

Hi,

It seems that the java window (the printing screen) is sometimes minimized as soon as it is opens. Because of this the printing screen won't be displayed untill the java icon is clicked to open up the screen.

So we need to find a way to make sure the window opens correctly and in the foreground on windows. I'll take a quick look now but maybe @WesGilster will have a better idea to resolve this :)!

kloknibor avatar Jul 10 '17 17:07 kloknibor

So I just looked through the code and found out you already set always on top... Not sure what goes wrong :

		refreshFrame.setAlwaysOnTop(true);
		refreshFrame.setUndecorated(true);
		refreshFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
		Dimension dim = device.getDefaultConfiguration().getBounds().getSize();
		refreshFrame.setMinimumSize(dim);
		refreshFrame.setSize(dim);
		refreshFrame.setVisible(true);

kloknibor avatar Jul 10 '17 17:07 kloknibor

All tags I could find in the Jdisplay API seems set... I guess the easiest thing to do is just checking if it is open after x seconds and if not re-open it.

It even seems like it does open maximized but then minimizes itself for some weird reason... What are your toughts @WesGilster ?

kloknibor avatar Jul 11 '17 15:07 kloknibor

I can't actually reproduce this. Is this only a problem when using /Display1 or does it happen with /Display0 as well?

WesGilster avatar Jul 15 '17 17:07 WesGilster

I think I get what you are talking about now. When you click on display0, display1 minimizes. Clicking the window again refocuses the window.

WesGilster avatar Jul 15 '17 17:07 WesGilster

Turning off full screen support fixes this bug. Looks like I can make that an option to utilize full screen mode or not.

WesGilster avatar Jul 15 '17 17:07 WesGilster

Added a full screen option that fixes this bug now... image

WesGilster avatar Jul 15 '17 19:07 WesGilster

HI Wes!

Cool thanks we will try testing this! I had a hard time reproducing this myself on a single screen as well but on a double screen machine it happend 80% of the time.

I'll let you know if it works!

kloknibor avatar Jul 16 '17 16:07 kloknibor