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

            Bug ID: 516293
           Summary: [Wayland] Applying Window Rules triggers persistent
                    top bar artifact after setting out-of-bounds screen
                    index
    Classification: Plasma
           Product: kwin
      Version First 6.6.0
       Reported In:
          Platform: EndeavourOS
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: rules
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 189803
  --> https://bugs.kde.org/attachment.cgi?id=189803&action=edit
Top bar on the last screen, with caret (unclickable)

SUMMARY
When configuring Special Application Settings (Window Rules), assigning an
invalid/out-of-bounds screen number causes an unclickable top bar with a caret
to appear on all monitors, and there is a caret down on the right side of the
last monitor.

After removing the offending screen property and restarting, the issue
temporarily resolves. However, subsequently opening any application's Window
Rules and clicking "Apply" (even with no new changes) triggers the artifact to
appear again. It appears the invalid screen parameter corrupts the KWin rules
configuration or window state in memory, causing rendering glitches upon any
subsequent rule application.

STEPS TO REPRODUCE

Use a multi-monitor Wayland setup (4 monitors).

Press Alt+F3 on a window (e.g., Firefox) -> More Actions -> Special Application
Settings.

Add the "Screen" property and set it to an out-of-bounds index (e.g., "4" on a
4-display setup, where indices likely span 0-3, but I can't be sure as there
isn't any indicator).

Apply the rule. (Observe the artifact bar appear on all screens, and the last
screen also has a caret down (unclickable).

Remove the "Screen" property and restart to temporarily clear the bar.

Open any application's Special Application Settings again and press "Apply".

OBSERVED RESULT
An unclosable top bar with a caret on the right side appears on the last
screen, and the same top bar on all screens. It cannot be interacted with, and
it reappears anytime Window Rules are applied, even after the initial offending
rule is removed from the GUI. It appears on top of all other applications,
making lots of options (minimize, close, tabs, etc) hidden. 

EXPECTED RESULT
KWin should reject invalid screen inputs or gracefully default to the primary
screen without creating UI artifacts. Applying new rules should not resurrect
glitches from previously deleted rules.

SOFTWARE/OS VERSIONS
OS: EndeavourOS x86_64
DE: KDE Plasma 6.6.0
WM: KWin (Wayland)
GPU: NVIDIA GeForce RTX 4070
Displays: 4

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

Reply via email to