-
Notifications
You must be signed in to change notification settings - Fork 103
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
IntelliJ/CLion using X11 backend renders incorrectly on resize #3570
Comments
Hmm. I've not seen this, but I've been using the preview Wayland support for the past few weeks |
I can confirm the above weirdness. I wonder if it is related to the clipping mentioned in #3560 (comment) |
Happens as far back as 2.13 (can't get earlier versions to build) |
So I found the cause of the bug. If you watch the video, you'll see it happening with only vertical or horizontal resizing and not corner resizing (although that's broken as well). The culprit was these few lines: mir/src/server/frontend_xwayland/xwayland_surface.cpp Lines 1231 to 1237 in b56aa20
Which broke this conversion from mir/src/miral/window_specification.cpp Lines 88 to 89 in b56aa20
The most apparent solution is to consume both the width and height if they're both equal to the current content size, otherwise, both pass even if one hasn't changed. Another solution would be to modify the logic of This also exhibits something similar to #3560 and corner resizing, where resizing stops immediately once the cursor leaves the application window. In #3560, this manifests by not being able to resize at all as the widgets are outside the visible window. |
Fixed in #3587 |
How to reproduce
If you enlarge or shrink the window, you'll see the UI update, but the rendering will be still confined to the old boundaries
intellij-shenanigans.mp4
The text was updated successfully, but these errors were encountered: