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

            Bug ID: 524518
           Summary: XWayland window stays invisible after unmap/remap
                    (hide/show to tray) even though X11 reports it mapped
    Classification: Plasma
           Product: kwin
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
An X11/XWayland application that hides its own main window (plain
XUnmapWindow, e.g. AWT's Frame.setVisible(false), no iconify) and later
re-shows it (XMapWindow / setVisible(true)) does not become visible again.
The window is still mapped from X11's point of view (xwininfo reports
"IsViewable" after the show call) but nothing is drawn on screen. Worked
correctly on Plasma 6.1, broken on 6.6.6.

STEPS TO REPRODUCE
1. Run a Java/AWT app with a tray icon that hides its main window on click
   (Frame.setVisible(false)) and shows it again on the next click
   (Frame.setVisible(true)). Reproduced with MediathekView 14.3.0.
2. Click the tray icon to hide the window.
3. Click the tray icon again to show it.

OBSERVED RESULT
Window stays invisible. xwininfo -id <windowid> shows "Map State:
IsViewable" after step 3, i.e. X11 considers it mapped, but nothing is
rendered on screen. No crash, process keeps running normally.

EXPECTED RESULT
Window reappears on screen.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.18
KDE Plasma Version: 6.6.6
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Graphics Platform: Wayland
Xwayland Version: 24.1.13

ADDITIONAL INFORMATION
Reproducible from a fresh app start, not just after prolonged use.
Right-click on the same tray icon shows no context menu either, but that
is expected/unrelated: the app never calls TrayIcon.setPopupMenu(), so
there is no menu to show.

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

Reply via email to