Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constraints.c: Allow resize of windows moved above screen #696

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

jknockel
Copy link
Contributor

If the titlebar of a window has been moved above the screen by a user via an unconstrained move, then any constrained user resize following this move will cause the window to jump below the top of the screen or cause other glitchy behavior.

This commit removes the constraint that the titlebar of a window must be below the top of the screen for any resize that is both (1) triggered by a user and (2) is a resize that affects only the left, right, or bottom edges of the window. This allows users to move a window partially above the screen and then resize the window to be wider or resize the bottom edge of the window to make it taller or shorter.

This is a backport of 5ba364a9476905d9b92e7dc6cdc2f273bcda2498.

If the titlebar of a window has been moved above the screen by a user
via an unconstrained move, then any constrained user resize following
this move will cause the window to jump below the top of the screen or
cause other glitchy behavior.

This commit removes the constraint that the titlebar of a window must be
below the top of the screen for any resize that is both (1) triggered by
a user and (2) is a resize that affects only the left, right, or bottom
edges of the window.  This allows users to move a window partially above
the screen and then resize the window to be wider or resize the bottom
edge of the window to make it taller or shorter.

This is a backport of 5ba364a9476905d9b92e7dc6cdc2f273bcda2498.
@mtwebster
Copy link
Member

Can you describe better how to reproduce the undesirable behavior?

Currently I can move a window above the screen edge using alt-drag. I can then resize that window by grabbing any visible edges/corners, without affecting its position (it does not jump back into the work area).

@mtwebster mtwebster added the Blocked Needs rebase, changes, or discussion label Nov 25, 2024
@jknockel
Copy link
Contributor Author

Interesting! This issue appears to only affect CSD windows (e.g., I can see it in gedit and Google Chrome as two examples). Can you reproduce the issue with a CSD window?

@JosephMcc
Copy link
Contributor

I can reproduce this using Mint Welcome.

@clefebvre clefebvre merged commit 5d3121e into linuxmint:master Nov 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Needs rebase, changes, or discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants