Implement wlr-foreign-toplevel-management-v1

This commit is contained in:
Drew DeVault 2019-08-20 18:30:09 +09:00
parent 1d3cbe9f27
commit facbf81b7c
5 changed files with 68 additions and 0 deletions

View file

@ -7,6 +7,7 @@
#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/types/wlr_output_management_v1.h>
#include <wlr/types/wlr_presentation_time.h>
@ -73,6 +74,8 @@ struct sway_server {
struct wl_listener output_manager_apply;
struct wl_listener output_manager_test;
struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager;
size_t txn_timeout_ms;
list_t *transactions;
list_t *dirty_nodes;

View file

@ -91,6 +91,10 @@ struct sway_view {
// when a transaction is applied.
struct wlr_box saved_geometry;
struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel;
struct wl_listener foreign_activate_request;
struct wl_listener foreign_close_request;
bool destroying;
list_t *executed_criteria; // struct criteria *