Skip to content

squeezimize: fix default behavior - #3106

Merged
ammen99 merged 1 commit into
WayfireWM:masterfrom
hustlerone:squeezimize
Aug 11, 2026
Merged

squeezimize: fix default behavior#3106
ammen99 merged 1 commit into
WayfireWM:masterfrom
hustlerone:squeezimize

Conversation

@hustlerone

Copy link
Copy Markdown
Contributor

The default behavior was broken since commit 3b6d5d5286265a58e784e18c1ece5ea867295c52, where minimize_target (the function input) was being used for calculations instead of using this->minimize_target (the member of the class that stores the final target).

As of now (without this PR), if you run squeezimize you will see it will not squeeze into anything, it'll just float around then pop out of existence.

The default behavior was broken since commit `3b6d5d5286265a58e784e18c1ece5ea867295c52`, where minimize_target (the function input) was being used for calculations instead of using this->minimize_target (the member of the class that stores the final target).
@soreau

soreau commented Aug 10, 2026

Copy link
Copy Markdown
Member

@dkondor ping on this, can you have a look?

@dkondor

dkondor commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Hi,

I don't have time to test this right now, but looking into the change and the original commit, it was likely an oversight from me not to use this->minimze_target that this PR would correct.

Note: I think the problematic behavior only occurs if no client (taskbar / dock) sets a minimize location, since this is the only case when this->minimize_target and minimize_target will differ. This explains why we did not notice when testing.

@soreau

soreau commented Aug 11, 2026

Copy link
Copy Markdown
Member

@dkondor Thanks. Just by looking, I arrived at the same conclusions. It seems this patch is rightfully doing what the commit message says.

@hustlerone Thanks for your pull request.

@ammen99

ammen99 commented Aug 11, 2026

Copy link
Copy Markdown
Member

Thanks!

@ammen99
ammen99 merged commit 4c34a7b into WayfireWM:master Aug 11, 2026
4 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.

4 participants