Skip to content

Conversation

Nauscar
Copy link

@Nauscar Nauscar commented Aug 6, 2025

  • Fixed pressure barrier for top and bottom positions
  • Increased dwell edge to 2px

Fixes #2407

@Nauscar
Copy link
Author

Nauscar commented Aug 6, 2025

Fixes #2288


const {signals: Signals} = imports;

const DOCK_DWELL_EDGE_PX = 2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe for another PR, but should we also scale this by the monitor scaling?

// minus DOCK_DWELL_EDGE_PX to avoid conflicting with other active corners.
if (this._position === St.Side.LEFT) {
shouldDwell = (x === this._monitor.x) && (y > workArea.y) &&
shouldDwell = (x <= this._monitor.x + DOCK_DWELL_EDGE_PX) && (y > workArea.y) &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
shouldDwell = (x <= this._monitor.x + DOCK_DWELL_EDGE_PX) && (y > workArea.y) &&
shouldDwell = (x >= this._monitor.x - DOCK_DWELL_EDGE_PX &&
x <= this._monitor.x + DOCK_DWELL_EDGE_PX) && (y > workArea.y) &&

Maybe? And similarly for other cases? As I guess we do not want to break multi-monitor cases

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.

Issue with autohide

2 participants