Omawrite's Save File dialog opens larger than the screen at scale 2 (GTK 3 file chooser sizing bug)
Checked the Lua rule and the window-rule API on this machine, and the GTK claims against GitLab's API. Confirmed here: o.window(match, rules) is real, it is Omarchy's own helper at /usr/share/omarchy/default/hypr/helpers.lua:142, it merges the match table and calls hl.window_rule, and float, center and size = { w, h } are all keys Omarchy's own shipped rules use, for example /usr/share/omarchy/default/hypr/apps/steam.lua:2 and apps/battlenet.lua:5. A { class = ..., title = ... } match table is also shipped, at apps/steam.lua:2, so the rule in the fix is valid Omarchy 4 Lua rather than hyprlang or a guess. hyprctl reload is a documented subcommand of the installed Hyprland 0.56.2. Placing the rule at the bottom of ~/.config/hypr/hyprland.lua matches that file's own instruction to add personal configuration below the require lines, so the fix's placement is right. GitLab's API confirms merge request 10311, titled "filechooser: Avoid converting CSS font size twice", state merged into target branch gtk-3-24 at 2026-09-01T14:50:36Z with merge commit b30343717dc9b02cf157d2ea87da585d8d518845, whose short id is b3034371. Its diff removes exactly the font_size = font_size * resolution / 72.0 + 0.5 line from find_good_size_from_style() in gtk/gtkfilechooserwidget.c, which is the cause the record states. The merge request description also confirms the record's 1203x902 with GDK_SCALE=2 detail, which it attributes to GTK issue 771. The newest GTK 3 tag is still 3.24.52 from 2026-03-22 and archlinux.org still reports gtk3 1:3.24.52-1, matching pacman -Q gtk3 here, so the fix section's statement that the commit has not shipped holds today, 2026-09-11. Issue 9046 is closed as resolved upstream on 2026-09-01 and its body matches the symptom field line for line, including the (342, -45) position, the 1231x950 size, the reset of org.gtk.Settings.FileChooser window-size not helping, and GDK_SCALE=1 reproducing. One thing is wrong. The verify block runs grep -A6 'title: Save File', and hyprctl clients on this machine prints size: five lines before title:, so trailing context shows initialClass, initialTitle, pid and xwayland and never shows the size the check is looking for. Replaced with -B6, which covers at: through title:. Not exercised: I have no Asahi MacBook and no scale 2 display here, omawrite 0.5.0-1 is installed but I did not open its Save dialog or apply the rule, so the measured 1231x950 and 875x600 numbers and the patched 908x707 come from the reporter and the merge request, not from this machine.
Symptom
Omarchy 4.0.1-2 on a MacBook Air M2 (Asahi), Omawrite 0.5.0-1, GTK 3.24.52, built-in 2560x1664 panel at Hyprland scale 2 (1280x832 logical). Pressing Ctrl+S in Omawrite opens a Save File window of 1231x950 logical pixels at (342, -45), clipped at the top, right and bottom, so the filename field and the Cancel and Save buttons are hard to reach. hyprctl clients shows class omawrite, title Save File, owned by the Omawrite PID rather than xdg-desktop-portal-gtk. Resetting org.gtk.Settings.FileChooser window-size to (-1, -1) does not help and GDK_SCALE=1 reproduces the same size. Reported from one machine.
Cause
Established by the reporter and accepted upstream. Omawrite's Qt Quick FileDialog runs under Omarchy's QT_QPA_PLATFORMTHEME=gtk3, so it creates a GTK 3 file chooser inside the Omawrite process instead of calling the portal. In GTK 3's find_good_size_from_style(), gtk_style_context_get(..., "font-size", ...) already returns the computed CSS font size in pixels, but the chooser still multiplied it by resolution / 72 as if it were points, so the default size came out roughly one third too large. The reporter reproduced it in a standalone GtkFileChooserDialog without Omawrite, Qt, Hyprland or Omarchy. GTK's merge request notes the same 1203x902 result was reported upstream with GDK_SCALE=2.
Fix
Fixed upstream in GTK merge request !10311, merged into the gtk-3-24 branch on 2026-09-01 as commit b3034371. That commit is not in gtk3 3.24.52, which is what Arch ships as of 2026-09-07 (gtk3 1:3.24.52-1), so the fix arrives with the next gtk3 release through the normal update:
omarchy update
pacman -Q gtk3 # needs a version newer than 1:3.24.52-1
Until then, the reporter's Hyprland rule constrains only Omawrite's Save File window. It was verified on the one machine above and the size is chosen for that display, so adjust it for yours:
-- ~/.config/hypr/hyprland.lua, below the require lines
o.window(
{ class = "^omawrite$", title = "^Save File$" },
{ float = true, center = true, size = { 875, 600 } }
)
hyprctl reload
Verify
Open Omawrite, press Ctrl+S, then:
hyprctl clients | grep -B6 'title: Save File' # size within the monitor's logical resolution
The context has to be taken before the match, not after. hyprctl clients prints size: five lines above title:, so -A6 shows initialClass, pid and the rest and never shows the size. On the reporter's display the rule gave 875x600 at (203, 130), and the patched GTK gave 908x707 with no rule.