Merge branch 'main' of https://codeberg.org/dwl/dwl
This commit is contained in:
commit
f9aafbd339
5
dwl.c
5
dwl.c
@ -791,6 +791,9 @@ 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));
|
||||
|
||||
/* Temporarily set the layer's current state to pending
|
||||
* so that we can easily arrange it */
|
||||
old_state = l->layer_surface->current;
|
||||
@ -973,8 +976,6 @@ createlayersurface(struct wl_listener *listener, void *data)
|
||||
|
||||
wl_list_insert(&l->mon->layers[layer_surface->pending.layer],&l->link);
|
||||
wlr_surface_send_enter(surface, layer_surface->output);
|
||||
wlr_fractional_scale_v1_notify_scale(surface, l->mon->wlr_output->scale);
|
||||
wlr_surface_set_preferred_buffer_scale(surface, (int32_t)ceilf(l->mon->wlr_output->scale));
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user