| Ticket UUID: | 3ef3fc7b7d1f085763c50a4c8aeb70967ecf9f44 | |||
| Title: | Wayland branch: a toplevel resized by Tk gets its old size back under sway (scale-23.1, unixWm-44.2 fail) | |||
| Type: | Bug | Version: | wayland | |
| Submitter: | serhiy.storchaka | Created on: | 2026-10-19 20:26:51 | |
| Subsystem: | (unused) | Assigned To: | aku | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-11-23 14:53:03 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-11-23 14:53:03 | |||
| Description: |
On the wayland branch under sway, a toplevel resized by Tk can get its old size back when another toplevel is mapped. E.g. after . configure -width 200 -height 200; wm geometry . {}; update, packing a 400x40 frame and creating a new toplevel, the main window is 200x200 again (scale-23.1 fails: the scale is reconfigured and redrawn during its -command, which runs the command again). GLFW sends the new window geometry, but it only takes effect at the next commit of the surface, and the window is not committed if nothing needs to be redrawn (the frame covers it), also because of the throttle in TkWaylandDisplayAllWindows(). The next configure of sway then has the old size. GNOME Shell does not show it. Proposed fix in branch wayland-present-resize: present the window at once after it is resized. scale-23.1 and unixWm-44.2 (where sway replaced the size 130x36 by its minimum size for floating windows, 50 pixels high) pass; no other changes in the test suite under sway. | |||
| User Comments: |
serhiy.storchaka added on 2026-11-23 14:53:03:
Merged into wayland [57e522cb56]. Kevin, no constraint is needed: on the current wayland branch both tests also pass under GNOME Shell. serhiy.storchaka added on 2026-10-20 09:22:04: Under mutter unixWm-44.2 fails for another reason: the 180 pixel minimum width with client-side decorations. It gives 180 36 instead of 130 36, with or without this branch. It is fixed in the test by tests-min-width (see [e80bd79247]). scale-23.1 passes here under GNOME Shell (headless), with and without this branch. What does it give for you? kevin_walzer added on 2026-10-19 21:58:23: Both tests still fail on mutter. Should we constrain them? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki