mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
foreign-toplevel: add ext-toplevel-list support
This commit is contained in:
parent
2a825008c6
commit
d6a48ab7a7
6 changed files with 137 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include <wlr/types/wlr_data_control_v1.h>
|
||||
#include <wlr/types/wlr_drm.h>
|
||||
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
||||
#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h>
|
||||
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
|
||||
#include <wlr/types/wlr_fractional_scale_v1.h>
|
||||
#include <wlr/types/wlr_gamma_control_v1.h>
|
||||
|
|
@ -48,6 +49,7 @@
|
|||
#define LAB_WLR_COMPOSITOR_VERSION 5
|
||||
#define LAB_WLR_FRACTIONAL_SCALE_V1_VERSION 1
|
||||
#define LAB_WLR_LINUX_DMABUF_VERSION 4
|
||||
#define EXT_FOREIGN_TOPLEVEL_LIST_VERSION 1
|
||||
|
||||
static struct wlr_compositor *compositor;
|
||||
static struct wl_event_source *sighup_source;
|
||||
|
|
@ -550,6 +552,10 @@ server_init(struct server *server)
|
|||
server->foreign_toplevel_manager =
|
||||
wlr_foreign_toplevel_manager_v1_create(server->wl_display);
|
||||
|
||||
server->foreign_toplevel_list =
|
||||
wlr_ext_foreign_toplevel_list_v1_create(
|
||||
server->wl_display, EXT_FOREIGN_TOPLEVEL_LIST_VERSION);
|
||||
|
||||
session_lock_init(server);
|
||||
|
||||
server->drm_lease_manager = wlr_drm_lease_v1_manager_create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue