-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make greeter window fullscreen #1673
Conversation
Only fullscreen clients can decide the output display on wayland
This fix is wrong though. We are not using xdg shell so the premise of "only fullscreen windows choose output" doesn't apply. It should either be using layer shell or xdg fullscreen, on either this change shouldn't make a difference (at best) or it broke for other use cases. I'd suggest reverting this and taking some time to understand what you are seeing. |
|
IMO this fix is not wrong in any case, as we want the greeter to be fullscreen (except maybe for test mode? Debatable). According to the
Currently this defaults to |
Well, I went to double check and it doesn't. I must have been trying with |
To clarify, it's still broken with |
Yea. Previously both showed the behaviour of spawning both windows in the same screen, as per my screenrecording in #1672 |
Can be reproduced easily by using With
|
Works with this patch to layer-shell-qt: diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp
index dd17aa0..e172b52 100644
--- a/src/qwaylandlayersurface.cpp
+++ b/src/qwaylandlayersurface.cpp
@@ -25,6 +25,10 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShell *shell, QtWaylandC
wl_output *output = nullptr;
QScreen *screen = interface->desiredOutput();
+ if (!screen) {
+ screen = window->window()->screen();
+ }
+
if (screen) {
auto waylandScreen = dynamic_cast<QtWaylandClient::QWaylandScreen *>(screen->handle());
// Qt will always assign a screen to a window, but if the compositor has no screens available a dummy QScreen object is created That would be a rather big oversight though, so I wonder whether that was intentionally not done. |
Yes that works on my test set up. |
I opened https://invent.kde.org/plasma/layer-shell-qt/-/merge_requests/26 for discussion |
Only fullscreen clients can decide the output display on wayland
Fixes #1672