-
Notifications
You must be signed in to change notification settings - Fork 153
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
Dropdown terminal on wayland always on the same monitor #1142
Comments
Actually, there's an effective workaround for that. The deeper problem arises when the second (third,...) monitor is scaled. Then the window will keep its pixel ratio (= scale factor) inside it, and that will ruin everything. This can be seen in lxqt-runner (and other Qt apps) too, although it's tolerable there because lxqt-runner usually has a small window. All in all, a correct size for the drop-down window isn't guaranteed with multi-screen setups in general. |
A more accurate explanation: The enum I experimented with several workarounds (e.g., a tiny, transparent, dummy widget), but all of them had bad side effects, to say nothing of their complexity. |
For reference: https://bugs.kde.org/show_bug.cgi?id=482733, https://bugs.kde.org/show_bug.cgi?id=485069, https://bugs.kde.org/show_bug.cgi?id=488780, and probably more. |
All complex problems in implementing this feature were caused by resizing the window programmatically on Wayland, as was done on X11. This patch sets 4 anchors instead, and then sets the left, right and bottom margins properly on showing the window. Fixes #1142
A simple idea is implemented in #1196: If this is impossible by resizing the window, then set the anchors and margins instead, and let the Wayland compositor do the resizing job according to them. |
We could use
layershell->setScreenConfiguration(LayerShellQt::Window::ScreenConfiguration::ScreenFromCompositor);
to open it where the cursor is, the downside is that it takes a screen resolution/size from one monitor and applies always that.Possible Solution
A menu entry similar to
lxqt-runner
: On wayland open on monitor: active, 1, 2, ?Steps to Reproduce (for bugs)
System Information
The text was updated successfully, but these errors were encountered: