mirror of
https://github.com/labwc/labwc.git
synced 2026-03-02 01:40:24 -05:00
Chase wlroots: Layershell version
Chases 9f793d350379872aeee56ea5c476adfeedc8bc88 layer-shell-v1: specify version in constructor
This commit is contained in:
parent
5feda28f12
commit
b4fc72b460
2 changed files with 5 additions and 2 deletions
|
|
@ -22,6 +22,8 @@
|
||||||
#include "labwc.h"
|
#include "labwc.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
|
|
||||||
|
#define LAB_LAYERSHELL_VERSION 4
|
||||||
|
|
||||||
static void
|
static void
|
||||||
apply_override(struct output *output, struct wlr_box *usable_area)
|
apply_override(struct output *output, struct wlr_box *usable_area)
|
||||||
{
|
{
|
||||||
|
|
@ -428,7 +430,8 @@ handle_new_layer_surface(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
layers_init(struct server *server)
|
layers_init(struct server *server)
|
||||||
{
|
{
|
||||||
server->layer_shell = wlr_layer_shell_v1_create(server->wl_display);
|
server->layer_shell = wlr_layer_shell_v1_create(server->wl_display,
|
||||||
|
LAB_LAYERSHELL_VERSION);
|
||||||
server->new_layer_surface.notify = handle_new_layer_surface;
|
server->new_layer_surface.notify = handle_new_layer_surface;
|
||||||
wl_signal_add(&server->layer_shell->events.new_surface,
|
wl_signal_add(&server->layer_shell->events.new_surface,
|
||||||
&server->new_layer_surface);
|
&server->new_layer_surface);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[wrap-git]
|
[wrap-git]
|
||||||
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
|
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
|
||||||
revision = 5b23987349dde587100c792bb6d180c930e6f2bd
|
revision = 9f793d350379872aeee56ea5c476adfeedc8bc88
|
||||||
|
|
||||||
[provide]
|
[provide]
|
||||||
dependency_names = wlroots
|
dependency_names = wlroots
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue