Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows printing screen doesn't always open in foreground #326

Open
kloknibor opened this issue Jul 10, 2017 · 7 comments
Open

Windows printing screen doesn't always open in foreground #326

kloknibor opened this issue Jul 10, 2017 · 7 comments

Comments

@kloknibor
Copy link
Contributor

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
Copy link
Contributor Author

kloknibor commented Jul 10, 2017

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);

@WesGilster WesGilster added the bug label Jul 11, 2017
@kloknibor
Copy link
Contributor Author

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 ?

@WesGilster
Copy link
Contributor

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

@WesGilster
Copy link
Contributor

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
Copy link
Contributor

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

@WesGilster
Copy link
Contributor

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

@kloknibor
Copy link
Contributor Author

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!

@WesGilster WesGilster changed the title [BUG] Windows printing screen doesn't always open in foreground Windows printing screen doesn't always open in foreground Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants