https://bugs.kde.org/show_bug.cgi?id=409979

            Bug ID: 409979
           Summary: Kwin rules forcing all windows to single monitor do
                    not (always) apply.
           Product: kwin
           Version: 5.15.3
          Platform: Kubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: rules
          Assignee: kwin-bugs-n...@kde.org
          Reporter: leftcr...@tutanota.com
  Target Milestone: ---

SUMMARY


STEPS TO REPRODUCE
1. Connect two displays, with the primary display on the RIGHT of the secondary
one.
2. Create a Kwin rule forcing all windows to Monitor 1 (which should be your
primary display in this context).
3. Disconnect the secondary left-hand display.
4. Reboot. (Maybe logging out is sufficient, not sure).
5. Open some windows (you are now just using one monitor).
6. Connect the secondary display.

OBSERVED RESULT

All Windows shift from the display you were using to the freshly connected
secondary display. To get the rule to catch, you have to disable and re-enable
it.


EXPECTED RESULT

The rule should force the windows to the display at all times.


This rule is very handy when the origin of the display assembly isn't located
inside the primary monitor. Without this rule, Kwin will move all your windows
to the secondary display when you connect it, which is extremely disruptive.

Ofc the ideal solution would be for Kwin to ensure that windows stay on the
primary display when the assembly changes, but in the meantime the rule is an
indispensable hack. 

(perhaps a better setting would be to a "force to primary display" rule, since
monitor numbers are confusing and unstable)

Operating System: Kubuntu 19.04
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.0-20-generic
OS Type: 64-bit

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to