Skip to content

Conversation

Leleat
Copy link
Owner

@Leleat Leleat commented Apr 27, 2025

This partially reverts d960eed. That commit added a check to ensure that
unresizable and skip_taskbar windows are ignored during drag and drop
operations to fix #387, which was about the tile preview being shown
for windows that can't be tiled.

This doesn't work. "real" maximized windows don't allow resizing. So if
a window was maximized at the start of the DND operation we skipped the
whole tiling code. So let's only ignore skip_taskbar windows. This means
actually unresizable windows may trigger the tile preview (#387), but
that is better than skipping the whole DND code for maximized windows,
which is more common than a user trying to tile an unresizable window.
We need to fix the original issue in a different way.

Fixes #400

This partially reverts d960eed. That commit added a check to ensure that
unresizable and skip_taskbar windows are ignored during drag and drop
operations to fix #387, which was about the tile preview being shown
for windows that can't be tiled.

This doesn't work. "real" maximized windows don't allow resizing. So if
a window was maximized at the start of the DND operation we skipped the
whole tiling code. So let's only ignore skip_taskbar windows. This means
actually unresizable windows may trigger the tile preview (#387), but
that is better than skipping the whole DND code for maximized windows,
which is more common than a user trying to tile an unresizable window.
We need to fix the original issue in a different way.

Fixes #400
@Leleat Leleat merged commit ea3e850 into main Apr 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tile a maximized window don't show snap assist box when user tries to snap to edge an untilable window by dragging
1 participant