Support for ext-foreign-toplevel-list

This commit is contained in:
Keith Bowes 2024-04-22 13:00:39 -04:00
parent c9b187afc8
commit 77652741b5
5 changed files with 57 additions and 1 deletions

View file

@ -12,6 +12,9 @@
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_device.h>
#if WLR_CHECK_VERSION(0, 18, 0)
#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h>
#endif
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_idle_notify_v1.h>
#include <wlr/types/wlr_output_layout.h>
@ -68,6 +71,9 @@ struct wb_server {
struct wlr_box grab_geo_box;
double grab_x, grab_y;
uint32_t resize_edges;
#if WLR_CHECK_VERSION(0, 18, 0)
struct wlr_ext_foreign_toplevel_list_v1 *foreign_toplevel_list;
#endif
struct wl_list toplevels;
struct wlr_layer_shell_v1 *layer_shell;

View file

@ -18,6 +18,11 @@ struct wb_toplevel {
struct wlr_xdg_toplevel_decoration_v1 *decoration;
#if WLR_CHECK_VERSION(0, 18, 0)
struct wlr_ext_foreign_toplevel_handle_v1 *foreign_toplevel_handle;
struct wlr_ext_foreign_toplevel_handle_v1_state foreign_toplevel_state;
#endif
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener commit;
@ -28,6 +33,8 @@ struct wb_toplevel {
struct wl_listener request_minimize;
struct wl_listener request_move;
struct wl_listener request_resize;
struct wl_listener set_app_id;
struct wl_listener set_title;
struct wlr_box geometry;
struct wlr_box previous_geometry;