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 /dwl.c | |
| parent | b616476c856d893e0d7bd1e35b74cc996ec7f4b4 (diff) | |
introduce client_set_scale()
Diffstat (limited to '')
| -rw-r--r-- | dwl.c | 6 | 
1 files changed, 2 insertions, 4 deletions
| @@ -759,8 +759,7 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)  	struct wlr_layer_surface_v1_state old_state;  	if (l->layer_surface->initial_commit) { -		wlr_fractional_scale_v1_notify_scale(layer_surface->surface, l->mon->wlr_output->scale); -		wlr_surface_set_preferred_buffer_scale(layer_surface->surface, (int32_t)ceilf(l->mon->wlr_output->scale)); +		client_set_scale(layer_surface->surface, l->mon->wlr_output->scale);  		/* Temporarily set the layer's current state to pending  		 * so that we can easily arrange it */ @@ -800,8 +799,7 @@ commitnotify(struct wl_listener *listener, void *data)  		 */  		applyrules(c);  		if (c->mon) { -			wlr_surface_set_preferred_buffer_scale(client_surface(c), (int)ceilf(c->mon->wlr_output->scale)); -			wlr_fractional_scale_v1_notify_scale(client_surface(c), c->mon->wlr_output->scale); +			client_set_scale(client_surface(c), c->mon->wlr_output->scale);  		}  		setmon(c, NULL, 0); /* Make sure to reapply rules in mapnotify() */ | 
