{"id":7079,"date":"2022-09-28T14:13:48","date_gmt":"2022-09-28T11:13:48","guid":{"rendered":"https:\/\/mummila.net\/kommentit\/?p=7079"},"modified":"2022-09-28T14:13:48","modified_gmt":"2022-09-28T11:13:48","slug":"window-resizing-broken-in-ubuntu-20-04-with-wayland","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2022\/09\/28\/window-resizing-broken-in-ubuntu-20-04-with-wayland\/","title":{"rendered":"Window resizing broken in Ubuntu 20.04 with Wayland"},"content":{"rendered":"<h3>What Operating System(s) are you seeing this problem on?<\/h3>\n<p>Linux Wayland<\/p>\n<h3>Which Wayland compositor or X11 Window manager(s) are you using?<\/h3>\n<p>Gnome<\/p>\n<h3>WezTerm version<\/h3>\n<p>20220927-071112-9be05951<\/p>\n<h3>Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?<\/h3>\n<p>Yes, and I updated the version box above to show the version of the nightly that I tried<\/p>\n<h3>Describe the bug<\/h3>\n<p>I&#8217;m running a standard Ubuntu 20.04 Gnome desktop, but with Wayland. Resizing of wezterm window is broken on this setup: selecting &#8221;maximize&#8221; from the title bar context menu or dragging the window against the top or the sides of the screen doesn&#8217;t maximize\/tile the window, but any resizing that does happen results in any text entered in the terminal thereafter to be get garbled. In this screenshot I&#8217;ve first entered\u00a0<code class=\"notranslate\">wezterm --version<\/code>\u00a0before resizing, then dragged the window against the top, then entered\u00a0<code class=\"notranslate\">wezterm --version<\/code>\u00a0again:<\/p>\n<p><a href=\"http:\/\/mummila.net\/kommentit\/files\/2022\/09\/Screenshot-from-2022-09-28-13-43-02.png\"><img decoding=\"async\" src=\"http:\/\/mummila.net\/kommentit\/files\/2022\/09\/Screenshot-from-2022-09-28-13-43-02.png\" alt=\"Screenshot from 2022-09-28 13-43-02\" \/><\/a><\/p>\n<h3>To Reproduce<\/h3>\n<ol>\n<li>Install your bog-standard Ubuntu 20.04 desktop in a VM and boot it up.<\/li>\n<li>On the GDM login screen select &#8221;Ubuntu on Wayland&#8221; from the bottom right menu, then log in.<\/li>\n<li>Install wezterm.<\/li>\n<li>Start wezterm.<\/li>\n<li>Right-click wezterm&#8217;s title bar and select &#8221;Maximize&#8221;.<\/li>\n<li>Type something<\/li>\n<\/ol>\n<h3>Configuration<\/h3>\n<p>no config<\/p>\n<h3>Expected Behavior<\/h3>\n<p>After step 5, I expect the window to be maximized (i.e. to fill the desktop). After step 6, I expect to see what I typed.<\/p>\n<h3>Logs<\/h3>\n<p>no logs available<\/p>\n<h3>Anything else?<\/h3>\n<p>The issue is not present in an X11 session. Ubuntu 20.04 defaults to X11, but I&#8217;ve used it with Wayland exclusively since the release without issues. More specifically, I can&#8217;t remember seeing resizing issues similar to this with any other application.<\/p>\n<p>I also have a laptop running Ubuntu 22.04 and Wayland, and there all resizing of the wezterm window works just as I&#8217;d expect (i.e. just as in any other application).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Selecting &#8221;maximize&#8221; doesn&#8217;t maximize the window, but any resizing that does happen causes text entered in the terminal thereafter to be get garbled.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[10851,3406,2679,14093,22937],"class_list":["post-7079","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-gdm","tag-gnome","tag-ubuntu","tag-wayland","tag-wezterm","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=7079"}],"version-history":[{"count":5,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7079\/revisions"}],"predecessor-version":[{"id":7088,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7079\/revisions\/7088"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=7079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=7079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=7079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}