lawand-dot-io / taskbar

Taskbar
https://lawand.io/taskbar/
32 stars 0 forks source link

Incorrectly detecting windows as overlapping Taskbar (on non-main display) and resizing them as a result #21

Closed jameszhan9592 closed 8 months ago

jameszhan9592 commented 9 months ago

Describe the bug With a two-display setup, one placed above the other, when resizing an app window on the bottom display, the bottom of the app window will keep getting resized to the top.

It's really hard to describe with words. Please see the screen recording below.

To Reproduce Steps to reproduce the behavior:

  1. Have two displays connected
  2. In display settings, put one of the display above the other
  3. Move an app window to the bottom display
  4. Double-click the top of the app window to maximize it, OR
  5. Drag the bottom edge of the app window down

Expected behavior After the app window is resized, its size will not change until the user resize it again.

Screen recording Please see this screen recording of the issue. The screen captured is the bottom display.

Desktop (please complete the following information):

lawand-dot-io commented 9 months ago

Hi James. Thanks for the bug report. I actually know this bug. This is a side-effect of the "Auto-resize windows when they overlap Taskbar" feature that can be unset in the Advanced tab in preferences. The feature works without issues on a single monitor and is designed to make sure a window that is too large and overlaps Taskbar gets resized as to no longer overlap it. So, until I fix this bug, a temporary solution is to disable that feature and hopefully you find a way to make sure windows aren't being covered by Taskbar.

lawand-dot-io commented 8 months ago

Screen recording re-uploaded for reference: https://github.com/lawand-dot-io/taskbar/assets/132961914/11b7394d-7eaa-4054-9266-9fb1f447260b

livinlicious commented 8 months ago

I have this issue also, but a "quick fix" is to make sure the displays have the same size and are on the bottom same positioned like so: https://monosnap.com/file/HLmHTQuyni8drpOgr4J3TeitDYHJer

This issue also exists identically in UBAR4. Since Ubar currently supports multimonitor, its not as pronounced though, if you make sure the bottom end is exactly same arranged. Your Taskbar App still has the issue more strongly.

lawand-dot-io commented 8 months ago

@livinlicious Thanks for the suggestion of the quick fix. That's great

By the way this bug is already fixed in the code base, which means the next version of Taskbar will not have the bug anymore. It should be released in about a week or so.

Cheers

lawand-dot-io commented 8 months ago

This bug has been fixed in Taskbar version 1.0.8 which is now released.