wslg icon indicating copy to clipboard operation
wslg copied to clipboard

Maximising gitkraken makes maximise / minimise buttons disappear and draws outer frame outside of taskbar

Open HnLn opened this issue 5 years ago • 10 comments

Environment

Windows build number: Microsoft Windows [Version 10.0.22000.258]
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.26

Steps to reproduce

Maximise the gitkraken window.

Expected behavior

The window should be maximised within the desktop (not over the taskbar) and the max / min / close button should remain visible.

The window border should stay within the desktop.

Actual behavior

The maximise and close button disappear also hovering over the icon in taskbar, the close button in window popup also doesn't work.

status_bar

The outer frame expands to the whole screen, over the windows taskbar.

border

HnLn avatar Oct 17 '21 10:10 HnLn

it is not about gitkraken. it is about all windows which not control their header like firefox and chrome:( But not like gedit. Maybe it is because rounded corner in windows 11. Very nasty bug:(

akpatternica avatar Oct 18 '21 07:10 akpatternica

I don't know, I don't have the problem with phpstorm (there the menu items don't work when maximised, but that's a different problem).

Probably unrelated, I don't get a gitkraken icon in windows like I get for phpstorm and jetbrains toolbox (there I get their own icon with the pinguin over it).

HnLn avatar Oct 18 '21 08:10 HnLn

@HnLn, would you please share weston.log? You can shutdown WSL first by "wsl --shutdown" at cmd.exe, then start again and run gitkraken, then maximize its window. At this point, capture weston.log. I haven't used this app throughout, but simply clicking maximize button seems working fine for me. The weston.log should contains desktop area topology which is used to determine maximize window size and screen size, that can help me to determine the cause.

Regarding to the ICON on taskbar, this is because gitlaraken doesn't set "_NET_WM_ICON" atom while most of other app, such as jetbrains, firefox and goole-chrome does. You can see this by xprop.

Thanks!

hideyukn88 avatar Oct 19 '21 16:10 hideyukn88

weston.log

Is above what you need ?

And ha ! I noticed 'enable_fractional_hi_dpi_support' in there, so went to check my display scaling. It's set to 250% (recommended) and if I set it to 200% (not workable, but as test), the min/max buttons work correctly and I don't get a border around my full desktop (including taskbar).

So, not a fix, but at least a cause.

HnLn avatar Oct 19 '21 20:10 HnLn

@HnLn, thanks for the log file and analysis. I tried to reproduce at my end, by setting display scaling to 250%, but it looks maximizing window is working correctly. Is there additional steps I might be missing? And does this issue only happen with gitkraken? how about other GUI applications? Thanks!

hideyukn88 avatar Oct 21 '21 22:10 hideyukn88

Hi @hideyukn88 tnx for following up. I don't think there are any additional steps, start the app and maximise. Maybe it's drivers or hardware ? I added screenshots for both.

ApplicationFrameHost_2021-10-23_21-32-07

mmc_2021-10-23_21-34-47

So I'm back on 250% and I have set WESTON_RDP_DISABLE_FRACTIONAL_HI_DPI_SCALING=false in .wslgconfig. Now I also have the problem with phpstorm. If I remove above setting, do wsl --shutdown and then restart, they both work correctly. very weird.

HnLn avatar Oct 23 '21 19:10 HnLn

I am facing the same issue with some AUR packages and some built from source softwares. Did someone find any fix for this?

KoushikSahu avatar Nov 06 '21 12:11 KoushikSahu

I have the same issue with wslg and gitkraken

dvelaren avatar Nov 09 '21 20:11 dvelaren

Soething else I noticed, the splash screen of the apps (both phpstorm en gitkraken) don't start centered on the desktop, they are more bottom right, so the might not now the actual desktop size ?

I tried to play a bit by going into wsl --system and modify /home/wslg/.config/weston.ini to add mode= with my windows desktop resolution. At one time I got it starting centered and it maximised correctly, but then I realised the changes to weston.ini are not retained, so I'm not sure if it indeed did something and I can't reproduce either ... :).

HnLn avatar Nov 14 '21 13:11 HnLn

FYI on a fresh win11 and microsoft store wsl install the issue is gone.

HnLn avatar Nov 20 '21 19:11 HnLn