NavigableToolButton bound its icon size to its background. Material's
ToolButton background is half the button height while the content is
square, but spans the full button width otherwise. When the window
straddles a 2x and a 1x display, the header row briefly lays out at a
smaller height, the content stops being square, and the icon width
becomes the button width. The button's implicit width is then icon +
padding, so every layout pass widens it by 12px without end and
reloads the SVG icon at each new size. The UI hangs and memory grows
until the process is killed.
Size the icon from the button's own height instead. That height comes
from Layout.preferredHeight, not from the icon, so there's no feedback
loop, and the icon stays 30x30 in the 60px toolbar as before.
Fixes#2092
This is now disabled by default in libplacebo and must be explicitly
enabled when the application knows that all other code sharing the
device has been enlightened about the new queue synchronization flags.
Since we know that Gamescope's WSI doesn't handle these new flags
correctly, we will disable internally synchronized queues when
that layer is present. See ValveSoftware/gamescope#2261
Many renderers do not properly synchronize these on their own, so let's do it for them.
HDR and window changes are infrequent enough not to really matter.
On macOS, release builds log to /tmp/Moonlight-<epoch>.log. /tmp is
shared by all users and the file name is predictable, so another local
user could plant symlinks at upcoming log names and have Moonlight
truncate and overwrite any file the victim can write to. The log was
also created world-readable.
Open the log with QIODevice::NewOnly (O_CREAT|O_EXCL) so an existing
file or symlink is never opened, and create it readable only by the
owner on Qt 6.3+. If the open fails we keep logging to stderr, as we
already did for any other open failure.
bs_read_ue() can return values above INT32_MAX. bs_read_se() stored the
result in an int32_t and computed (r+1)/2, which is undefined behavior
when the code is 0x7FFFFFFF and gives wrong values for codes above
INT32_MAX. The SPS being parsed comes from the host during the H.264
SPS fixup.
Do the conversion in unsigned arithmetic. bs_read_ue() returns at most
0xFFFFFFFE, so both branches produce in-range int32_t values, and every
code that was previously well-defined decodes to the same value.
Timeouts for long requests like launch or resume timed the entire
HTTP operation. If the host was no longer reachable, we could
spend 2 minutes sitting there, even though we hadn't even made
successful contact with the host to give it our request yet.
Now we will time out a request if we can't send it in 5 seconds,
regardless of how long we want to wait for the server to respond.
Apps built with the macOS 26+ SDK default to an event loop synchronized to the display which caps input polling rates.
We have to use the plist for the opt-out, since NSApp is already set up by Qt before SDL can set this default.
Fixes#2036