Commit 9159645
fix: force xcb on Linux and warn on handle=0 in Wayland sessions
qt.py: override QT_QPA_PLATFORM=xcb unconditionally on Linux for all Qt
bindings (PyQt5/PyQt6/PySide6). Wayland desktops such as KDE Plasma on
Kubuntu often pre-set QT_QPA_PLATFORM=wayland in the session environment;
setdefault was insufficient to override it, causing CEF to open a detached
top-level window instead of embedding into the Qt widget.
window_info.pyx: add a warnings.warn() in SetAsChild when
parentWindowHandle is 0 and WAYLAND_DISPLAY is set. This catches the
same misconfiguration for any toolkit (Qt, GTK, SDL2) and points the
developer to the correct per-toolkit env var fix.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1d8b6b1 commit 9159645
2 files changed
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
116 | 135 | | |
117 | 136 | | |
118 | 137 | | |
| |||
0 commit comments