diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-09 22:05:04 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-27 23:09:41 -0600 |
commit | 43016bdad80fcd2efe557a43e8db2345ead9b5f4 (patch) | |
tree | 7eeccd5031cc40d6488240a519d026cb03100150 /client.h | |
parent | b616476c856d893e0d7bd1e35b74cc996ec7f4b4 (diff) | |
download | dwl-43016bdad80fcd2efe557a43e8db2345ead9b5f4.tar.gz |
introduce client_set_scale()
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -331,6 +331,12 @@ client_set_fullscreen(Client *c, int fullscreen) wlr_xdg_toplevel_set_fullscreen(c->surface.xdg->toplevel, fullscreen); } +static inline void +client_set_scale(struct wlr_surface *s, float scale) { + wlr_fractional_scale_v1_notify_scale(s, scale); + wlr_surface_set_preferred_buffer_scale(s, (int32_t)ceilf(scale)); +} + static inline uint32_t client_set_size(Client *c, uint32_t width, uint32_t height) { |