microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.79k stars 8.34k forks source link

#7422 may have regressed - click on the top pixel of a tab when maximized #11309

Open zadjii-msft opened 3 years ago

zadjii-msft commented 3 years ago

From discussion on a0670cb6b3e57dde525af1a04563e94ce80b5390

Interestingly, the compensation for GH #10746 might have caused 10746 to stop functioning by pushing the application body down one more pixel. I can't get the tab bar hit targets at the top of the screen when maximized to work any longer.

@DHowett If you've got a repro for that, can you fix that again? I checked out this PR when it was first opened to make sure that one was still fixed, but I guess I didn't have my monitors in the very peculiar config that repro'd #7422 in the first place.

This might also be the #11294 issue, but unlikely Dustin had the MUX commit at the time.

sigprof commented 3 years ago

I see a problematic behavior which does not exactly match #7422 — for me the minimize/maximize/close buttons behave normally, but anything on the tab bar (including the new tab button and the dropdown arrow) cannot be activated when clicking exactly at the top of the screen when the window is maximized. Clicks in the problem area above the tab bar seem to be completely ignored (a double click does not result in restoring the window size, a right click does not show the window menu or anything else).

System information:

zadjii-msft commented 2 years ago

@kzshantonu what does your display layout look like in the Settings app, under System>Display?

kzshantonu commented 2 years ago

@zadjii-msft 150% scale, 2160x1440

zadjii-msft commented 2 years ago

Sorry, could you send me an actual screenshot of the little preview on that page? The last time this regressed, the actual alignment of the monitors was an influencing factor (which was insane). I just wanted to try and get a read if that would be an issue this time too.

kzshantonu commented 2 years ago

@zadjii-msft Single display

ApplicationFrameHost_tAqxD3oKll
zadjii-msft commented 2 years ago

Welp. That's easier to set up the repro for, but alas I'm not seeing that. Any chance you've got the "auto hide taskbar" setting enabled?

kzshantonu commented 2 years ago

@zadjii-msft no. But I do have a vertical left taskbar, since forever

djp101 commented 2 years ago

Windows 11 Terminal Preview 1.16.2642.0 has this issue. Resolution: 1920x1200 Scale: 150% Orientation: Landscape

CactusPie commented 1 year ago

Same issue here Windows 10 22H2 Terminal Version: 1.15.3465.0 Resolution: 1920x1080 Scale: 150% Orientation: Landscape Taskbar auto-hide is NOT enabled

The problem did not occur on one of the older versions, though unfortunately I can't remember which one it was

Edit: Still occurs on version 1.16.10261.0 My environment is multi monitor, the other two monitors use the same resolution, but with 100% scale - the problem doesn't occur on the other monitors.

djp101 commented 1 year ago

This issue also happens with the "plus" icon to open a new tab in Windows Terminal Version 1.15.3466.0, the "clickable" area should stretch up to top of the window border.

LukeDearden commented 1 year ago

Same issue here Windows 10 something or other Terminal Version: 1.17.1023 Resolution: 1920x1080 Scale: 100% Orientation: Landscape Taskbar auto-hide is NOT enabled

Seems like it might be related to multiple monitors and their alignment in Display settings

like this there is a tiny gap image

like this seems OK

image

zadjii-msft commented 1 year ago

https://github.com/microsoft/terminal/blob/72d0566fa6d681291799e59a69168fc0483d8277/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp#L533-L559

If I manually change that adjustment from -1 to -2, this seems to always work. Why though? What godforsaken rounding is causing this? And is this something that's silly and needs to be like, -3 at 250% scaling?

AND

just undoing the +1 as noted in https://github.com/microsoft/terminal/commit/a0670cb6b3e57dde525af1a04563e94ce80b5390#commitcomment-56270857 didn't seem to change this at all.

vadimkantorov commented 1 year ago

Just hit this again (terminal Version: 1.16.10262.0), but don't think that my UI is 150% scaled

Not only I can't click, the topmost window pixel hover even stops highlighting the tab under the mouse cursor

gknispel-australdx commented 1 year ago

If I understand this issue correctly it seems I'm affected by it too. I can't select tabs when the windows is maximized by clicking on the top line of the screen. I've got a 4k (3840x2400) 15.6 inches 16/10 screen configured with a scaling factor of 225%. I even thought it never worked until I recently used terminal on a low DPI screen, where it worked correctly.