window_manager icon indicating copy to clipboard operation
window_manager copied to clipboard

The fullscreen/unfullscreen moment will have windows' native window border

Open ismanong opened this issue 2 years ago • 7 comments

Honeycam 2022-08-29 20-22-31

There is also the issue that when zoomed out full screen, the bottom will persistently expose a few pixels of the native box colour.

Hi author, thank you for the package, how do I fix this please?

ismanong avatar Aug 29 '22 12:08 ismanong

*These are workaround, not fixes

For hiding the native window border when going to full screen

You can call

await windowManager.hide();

before calling

windowManager.setFullScreen(true);

For the few pixels at the bottom

Use this:

await windowManager.setBounds((await windowManager.getBounds()).inflate(1));
await windowManager.setBounds((await windowManager.getBounds()).inflate(-1));

after

await windowManager.setFullScreen(false);

As for hiding the native window after zoomed out of full screen, I don't know any workaround for that.

I believe the setFullScreen() method inside the plugin needs to be further improved to fix these issues.

damywise avatar Aug 29 '22 13:08 damywise

Honeycam 2022-08-30 00-39-25 @damywise Thank you for the solution, the problem when turning on full screen has shown up properly and the process is good. However, there is still a problem with removing the full screen.

Do you have any better suggestions please?

ismanong avatar Aug 29 '22 16:08 ismanong

I don't, sorry about that. Maybe use

await Future.delayed(const Duration(milliseconds: 200));

before calling the setBounds functions, but after setFullScreen(false) so the resize happens after the window is truly out of full screen mode.

damywise avatar Aug 30 '22 14:08 damywise

Same problem on windows10.

chifandeyu avatar Sep 26 '22 03:09 chifandeyu

I have the same problem

zhangweihong avatar Nov 10 '22 08:11 zhangweihong

I have the same problem

Bullets-jyr avatar Apr 30 '23 04:04 Bullets-jyr

I have the same problem

Bullets-jyr avatar May 01 '23 04:05 Bullets-jyr