Package: libkysdk-applications
Version: 3.0.1.2-1
Severity: normal

Dear Maintainer,

Under an X11 UKUI session using ukwm as the window manager, calling
kdk::UkuiStyleHelper::self()->removeHeader(QWidget *) in Qt6 applications
does not remove the native window manager titlebar. As a result,
applications with custom titlebars (such as ukui-control-center and
kylin-video) display double titlebars.

Steps to reproduce:
1. Start an X11 UKUI desktop session with ukwm.
2. Launch a Qt6 application that calls
   kdk::UkuiStyleHelper::self()->removeHeader(this) (for example,
   ukui-control-center).
3. Observe the window decorations and inspect the window property with:
   xprop -id <window_id> _MOTIF_WM_HINTS

Actual result:
- Both the ukwm native titlebar and the application's custom titlebar are
  shown.
- `_MOTIF_WM_HINTS` remains at the default value:
  _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0

Expected result:
- The native window manager titlebar should be hidden, leaving only the
  application's custom titlebar.
- `_MOTIF_WM_HINTS` should be set to border-only decorations:
  _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x1, 0x2, 0x0, 0x0

Best regards,

Reply via email to