Skip to content

Draft: window: Should not occupy all workspaces when workspaces-only-on-primary

Daniel van Vugt requested to merge vanvugt/mutter:fix-issue-2333 into main

A window on a secondary monitor with workspaces-only-on-primary is effectively on no workspaces, not all workspaces.

This fixes an infinite loop:

  1. Window too large for primary monitor and is moved to secondary by the constraints logic.
  2. should_be_on_all_workspaces notices the window is on a secondary monitor and so declares it should be on all workspaces.
  3. Being on all workspaces makes the window on the primary monitor because workspaces-only-on-primary is true.
  4. Goto 1.

Closes: #2333

Edited by Daniel van Vugt

Merge request reports