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

            Bug ID: 506731
           Summary: partially offscreen window prevents window from
                    refreshing (wayland / electron?)
    Classification: Plasma
           Product: kwin
      Version First 6.3.5
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
Often when a window goes partially offscreen, the rest of the window will stop
refreshing and appear frozen, but after moving it back on screen you'll see
everything refresh including any typing that occurred.

I run into it every day for as long as I can remember and it definitely makes
me question my floating window philosophy. I heavily use "Keep above other
windows" to juggle between windows laid out on my screen. Sometimes I move half
a window off-screen so I can keep the half of it I need next to another window
for a bit. I think this only fails for electron apps.

Example: Have vscode running (native wayland mode) with 3 vertical splits:
terminal, editor, editor. I drag the window to the left so everything is
offscreen except the rightmost editor section. This gives me space on my screen
to have it side-by-side with my web browser as I search something. I
type/scroll in my browser, then click into the vscode window only for it to
appear frozen, not refreshing with any keyboard or mouse input. But if I drag
the whole thing so all borders are back within the desktop it refreshes and I
see the mess of blind keyboard/mouse events indicating it responded to inputs
but just didn't refresh.

I think sometimes it does stay refreshing for a while, but often it just stops.
>From what I can tell it seems to be electron apps that are the culprit.

Is this something kwin can fix, or is it on electron's end for doing something
wrong? I would lovvvve for this to just work.

STEPS TO REPRODUCE
1. Run an electron app like vscode in native wayland mode
2. Single 4k screen, nvidia graphics
3. Make the vscode window about 80% the size of the full screen
4. Drag it to the left so 2/3 of the window are off-screen
5. (optional) Try to interact with the window with keyboard
6. Click outside the window to some other application. (coincidentally, could
be a chromium/electron browser). Do some normal interactions, possibly
move/resize this other window.
7. Click back into the vscode window and try selecting text or typing

OBSERVED RESULT
The vscode window will not refresh when partially offscreen

EXPECTED RESULT
The vscode window will refresh when partially offscreen

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: arch linux 6.15.2-arch1-1
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.15.0 
Qt Version: 6.9.1

ADDITIONAL INFORMATION

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

Reply via email to