diff options
author | 2023-02-08 15:28:20 +0100 | |
---|---|---|
committer | 2023-07-12 09:59:00 +0200 | |
commit | fc16fb65491bda0d059b8c9aeae3dc9962e5c690 (patch) | |
tree | 020313d43830231e0fb52e3783c77eff6d44d39e | |
parent | swaybar: handle wayland-cursor failures (diff) | |
download | sway-fc16fb65491bda0d059b8c9aeae3dc9962e5c690.tar.gz sway-fc16fb65491bda0d059b8c9aeae3dc9962e5c690.tar.zst sway-fc16fb65491bda0d059b8c9aeae3dc9962e5c690.zip |
Send wl_surface.preferred_buffer_scale
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3696
-rw-r--r-- | sway/desktop/surface.c | 1 | ||||
-rw-r--r-- | sway/server.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/surface.c b/sway/desktop/surface.c index 68772ee0..5932eaa2 100644 --- a/sway/desktop/surface.c +++ b/sway/desktop/surface.c | |||
@@ -56,6 +56,7 @@ void surface_update_outputs(struct wlr_surface *surface) { | |||
56 | } | 56 | } |
57 | } | 57 | } |
58 | wlr_fractional_scale_v1_notify_scale(surface, scale); | 58 | wlr_fractional_scale_v1_notify_scale(surface, scale); |
59 | wlr_surface_set_preferred_buffer_scale(surface, ceil(scale)); | ||
59 | } | 60 | } |
60 | 61 | ||
61 | void surface_enter_output(struct wlr_surface *surface, | 62 | void surface_enter_output(struct wlr_surface *surface, |
diff --git a/sway/server.c b/sway/server.c index cc4719d7..3a11088a 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -103,7 +103,7 @@ bool server_init(struct sway_server *server) { | |||
103 | return false; | 103 | return false; |
104 | } | 104 | } |
105 | 105 | ||
106 | server->compositor = wlr_compositor_create(server->wl_display, 5, | 106 | server->compositor = wlr_compositor_create(server->wl_display, 6, |
107 | server->renderer); | 107 | server->renderer); |
108 | server->compositor_new_surface.notify = handle_compositor_new_surface; | 108 | server->compositor_new_surface.notify = handle_compositor_new_surface; |
109 | wl_signal_add(&server->compositor->events.new_surface, | 109 | wl_signal_add(&server->compositor->events.new_surface, |