mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-25 03:43:58 +11:00
wayland: check screen isPlaceholder and if wl_output is null
Fixes crashes on disconnected monitors
This commit is contained in:
parent
e7cd1e9982
commit
158db16b93
3 changed files with 4 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ QSWaylandSessionLockSurface::QSWaylandSessionLockSurface(QtWaylandClient::QWayla
|
|||
wl_output* output = nullptr; // NOLINT (include)
|
||||
auto* waylandScreen = dynamic_cast<QtWaylandClient::QWaylandScreen*>(qwindow->screen()->handle());
|
||||
|
||||
if (waylandScreen != nullptr) {
|
||||
if (waylandScreen != nullptr && !waylandScreen->isPlaceholder() && waylandScreen->output()) {
|
||||
output = waylandScreen->output();
|
||||
} else {
|
||||
qFatal() << "Session lock screen does not corrospond to a real screen. Force closing window";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue