Skip to content

Revert "Fix Autohide Location calculation bug (Issue #2413)"#2508

Open
siddhpant wants to merge 1 commit intomicheleg:masterfrom
siddhpant:revert-hide-fix
Open

Revert "Fix Autohide Location calculation bug (Issue #2413)"#2508
siddhpant wants to merge 1 commit intomicheleg:masterfrom
siddhpant:revert-hide-fix

Conversation

@siddhpant
Copy link

This reverts commit 3e0c24f.

That commit causes regression where the autohide is broken for regular cases.

Closes: #2501

This reverts commit 3e0c24f.

That commit causes regression where the autohide is broken for regular
cases.

Closes: micheleg#2501
Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
@gnolooo
Copy link

gnolooo commented Feb 16, 2026

Reverting this commit causes intellihide to malfunction, at least on my machine.

image

Specifically:

  • when disabling this setting, the dock is always hidden (as expected)
  • when enabling it, the dock should only hide if there is a window in its area, but instead it stays permanently visible.

@gogi983
Copy link

gogi983 commented Feb 16, 2026

Solution found here :

#2501 (comment)

Maybe it'll be useful for someone. I also faced the same issue after the last update and have noticed, that the issue for me was that the box area used to calculate overlaps was positioned correctly on x axis, but not the y axis. Interestingly enough, when I reverted that fix the situation flipped: now it was the x axis that was off and y axis which was correct. So as a duck tape solution I ended up with that, which actually fixed both of the issues for me (which I guess was the initial intent of the broken fix).

    const [absX] = this._box.get_transformed_position();

    this.staticBox.init_rect(
        absX,
        // this.x + this._slider.x - (this._position === St.Side.RIGHT ? this._box.width : 0),
        this.y + this._slider.y - (this._position === St.Side.BOTTOM ? this._box.height : 0),
        this._box.width,
        this._box.height
    );

FTR: file to modify is Docking.js, from line 1252.
Location: /home//.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com

@siddhpant
Copy link
Author

siddhpant commented Feb 17, 2026

That sounds like a random hack with no explanation.

First we should stop the new regression, then fix the existing problem.

@siddhpant
Copy link
Author

siddhpant commented Feb 17, 2026

Reverting this commit causes intellihide to malfunction, at least on my machine.

Does that happen on older version? If yes, then its a different bug.

@siddhpant
Copy link
Author

siddhpant commented Feb 17, 2026

that the issue for me was that the box area used to calculate overlaps was positioned correctly on x axis, but not the y axis. Interestingly enough, when I reverted that fix the situation flipped: now it was the x axis that was off and y axis which was correct.

this.x will be 0 in case of left, something in between in case of centre, and the max width in case of right. So the code subtracts the box width in case of right.

The logic is symmetrical, so we can't mix two solutions if we have to be correct. Otherwise it's just a hack for a specific use case.

@siddhpant
Copy link
Author

Note: For testing, use dbus-run-session gnome-shell --devkit --wayland.

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.

Problem with auto hide dock (v103)

3 participants