Commit Graph
4 Commits
Author SHA1 Message Date
zarzet ddfbe4f5ec revert(linux): stop preferring X11 over Wayland
This reverts commit a880f221f.

The window that is black with the page shifted into its lower left is a
Flutter 3.50.0 engine bug in the compositor (flutter/flutter 195885): the
layer offset is wrong whenever the driver's blit is not used, as with the
NVIDIA driver. The X11 renderer and the Wayland renderer both draw through
that compositor, and the same window is reported on X11, so preferring X11
did not reach the cause while it cost Wayland users native scaling. The
engine fix is on the stable branch for 3.50.1.

Refs mornyeapp/Mornye-Desktop#38
2026-11-19 01:37:50 +07:00
zarzet a3e88bbf01 fix(linux): use the system unwinder for every library in the process
The Flutter engine exports ten entry points of an unwinder of its own.
Libraries loaded after it bound those to the engine and the rest, such as
_Unwind_GetCFA, to libgcc_s, and the two do not share a context. The first
Lua error in the system libmpv's LuaJIT ended the app with a segmentation
fault (at start, on a song change, on repeat), and a C++ exception in a
system library ended it with an abort.

The runner now lists libgcc_s ahead of the engine, so later libraries find
it first. As a check behind that, main() looks up which library answers
for _Unwind_RaiseException and, if it is still the engine, starts the app
once more with libgcc_s preloaded, then gives programs it starts the
environment it was given.

Not compiled or run on Linux yet.

Refs mornyeapp/Mornye-Desktop#37, mornyeapp/Mornye-Desktop#40
2026-11-19 01:36:23 +07:00
zarzet a880f221fe fix(linux): prefer X11 over Flutter 3.50's Wayland renderer
Flutter 3.50 presents frames on a Wayland subsurface. On some compositors
the window stays black or shows a misplaced part of the page. Through X11
(XWayland on a Wayland session) GTK draws the frame as it did before.
Wayland is still used when no X server answers, and GDK_BACKEND=wayland
asks for it first. Not compiled or run on Linux.

Refs #925
2026-11-18 21:48:21 +07:00
zarzet f70bc95595 feat(desktop): add generated macOS, Windows and Linux runners
Output of flutter create --platforms=macos,linux,windows --org com.zarz
with Flutter 3.47.7. Identity, window and entitlement changes follow.
2026-10-20 13:25:29 +07:00