mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-20 01:40:56 -05:00
Add initial layer shell skeleton
This commit is contained in:
parent
a617d62354
commit
0e946d5a4f
5 changed files with 52 additions and 1 deletions
27
layer_shell_v1.c
Normal file
27
layer_shell_v1.c
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Cage: A Wayland kiosk.
|
||||
*
|
||||
* Copyright (C) 2021 Jente Hidskes
|
||||
*
|
||||
* See the LICENSE file accompanying this file.
|
||||
*/
|
||||
|
||||
#include "layer_shell_v1.h"
|
||||
#include "server.h"
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_layer_shell_v1.h>
|
||||
#include <wlr/util/log.h>
|
||||
|
||||
void
|
||||
handle_layer_shell_v1_surface_new(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct cg_server *server = wl_container_of(listener, server, new_layer_shell_v1_surface);
|
||||
struct wlr_layer_surface_v1 *layer_surface = data;
|
||||
|
||||
wlr_log(WLR_DEBUG, "New layer shell surface: namespace %s layer %d anchor %d size %dx%d margin %d,%d,%d,%d",
|
||||
layer_surface->namespace, layer_surface->pending.layer, layer_surface->pending.anchor,
|
||||
layer_surface->pending.desired_width, layer_surface->pending.desired_height,
|
||||
layer_surface->pending.margin.top, layer_surface->pending.margin.right,
|
||||
layer_surface->pending.margin.bottom, layer_surface->pending.margin.left);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue