mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
src/layers.c: send fractional scale before map
This commit is contained in:
parent
c4f683c70d
commit
8ba14891fa
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/types/wlr_fractional_scale_v1.h>
|
||||
#include <wlr/types/wlr_layer_shell_v1.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "common/macros.h"
|
||||
|
|
@ -552,6 +553,9 @@ handle_new_layer_surface(struct wl_listener *listener, void *data)
|
|||
|
||||
struct output *output = layer_surface->output->data;
|
||||
|
||||
wlr_fractional_scale_v1_notify_scale(layer_surface->surface,
|
||||
output->wlr_output->scale);
|
||||
|
||||
struct wlr_scene_tree *selected_layer =
|
||||
output->layer_tree[layer_surface->current.layer];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue