TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Improving Xwayland window resizing

158 pointsby TangerineDream7 months ago

8 comments

Arainach7 months ago
Excellent writeup, thanks for posting. I was involved with efforts to achieve similar things in Windows (Direct Composition, etc.). In practice, it was enlightening to debug various apps and frameworks and discover just how long repainting can take and how many edge cases there are around slow apps, hung apps, and so on. Who knows, maybe someone there still has some of the malicious test apps I wrote (using the language of this article, apps which acknowledge the sync request and then take multiple seconds to actually paint, etc., etc.).<p>It&#x27;s definitely a hard problem space that&#x27;s basically incompatible with how most GUI apps and frameworks worked from 1985-2015.
评论 #41983536 未加载
评论 #41978714 未加载
o11c7 months ago
For me, the quickest way to tell that I&#x27;m running on Wayland is seeing if multi-lingual keyboard input is broken. I have right-alt-while-pressed set to switch to a Greek layout (because who doesn&#x27;t math?), and it reliably works on X11 but breaks in all sorts of weird ways under Wayland (sometimes it simply fails to enable&#x2F;disable, sometimes it shows a notification as if it changed but switches back when input actually happens, ...).<p>On the bright side I&#x27;m finally learning how Vim&#x27;s digraphs work.
评论 #41978240 未加载
评论 #41978798 未加载
评论 #41977117 未加载
评论 #41987079 未加载
评论 #41977491 未加载
whywhywhywhy7 months ago
Huge respect to any dev who goes out of their way to fix flickering&#x2F;glitching&#x2F;black regions when resizing or moving windows, I honestly can&#x27;t stand it when I see it because I know it can be solved with effort.
sph7 months ago
Hoping this makes Xwayland Emacs much smoother to resize. It currently resizes at 0.5 fps for me on KDE.<p>If you&#x27;re wondering why I don&#x27;t use the native Wayland build of Emacs, it&#x27;s because it is <i>massively</i> more laggy on HiDPI screens than the X11 version. I reported the issue upstream, probably won&#x27;t be fixed for a decade when they&#x27;ll decide to port to GTK4 and its hardware accelerated rendering backend. It took me a long while to notice that the typing lag I was experiencing was not because of native compilation or single-threading, but pgtk being a bit weak at rendering 3840x2160 pixels at 60 fps. In fact, it was not until I tried the Xwayland build that I experienced how much faster Emacs can feel.
anotherhue7 months ago
I like to run xeyes and see if they move when I interact with the test application. It&#x27;s not better but they&#x27;re as charming as they always were.<p>Also consider running an xwayland app under gamescope which smooths out some issues.
评论 #41977598 未加载
评论 #41977418 未加载
ryandrake7 months ago
Nice results. It&#x27;s kind of wild that the &quot;before&quot; behavior would be considered acceptable&#x2F;shippable by anyone. That kind of jank should be a show stopper.
评论 #41977138 未加载
评论 #41978790 未加载
评论 #41978596 未加载
评论 #41977280 未加载
yxhuvud7 months ago
Hmm. Even with the fix it didn&#x27;t look very smooth even if it is a lot better. I wonder if that is due to the recording, or due to the mouse settings (mouse poll rate and acceleration settings are very impactful on smoothness), due to X or the toolkit, or due to it not being as good as it can be.
评论 #41978201 未加载
shmerl7 months ago
Nice! It would be cool for Wine Wayland driver to also fix window resizing (regedit currently is blinking all over when being resized).
评论 #41990915 未加载