History

wayland: set wl->scaling if there is no wl->current_output yet

If we get either preferred_scale or preferred_buffer_scale this early during initialization the wl->scaling value should be immediately updated instead of being deferred until later for correct geometry. Fixes #14019.

Dudemanguy committed 2 years ago

Commit cb613ba1 parent dec73f51 file · +6 −0Browse files

Unified · Split

video/out/wayland_common.c+6−0
@@ -1011,6 +1011,9 @@ static void surface_handle_preferred_buffer_scale(void *data, · 1010 unmodified lines
10111011 // Update scaling now.
10121012 if (single_output_spanned(wl))
10131013 update_output_scaling(wl);
1014+
1015+ if (!wl->current_output)
1016+ wl->scaling = wl->pending_scaling;
10141017 }
10151018
10161019 static void surface_handle_preferred_buffer_transform(void *data,
@@ -1236,6 +1239,9 @@ static void preferred_scale(void *data, · 219 unmodified lines
12361239 // Update scaling now.
12371240 if (single_output_spanned(wl))
12381241 update_output_scaling(wl);
1242+
1243+ if (!wl->current_output)
1244+ wl->scaling = wl->pending_scaling;
12391245 }
12401246
12411247 static const struct wp_fractional_scale_v1_listener fractional_scale_listener = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t