Add simple foreign toplevel implementation

This commit is contained in:
Johan Malm 2021-08-05 12:18:10 +01:00
parent 7dc4ae36ca
commit 042ea266a5
7 changed files with 91 additions and 2 deletions

11
src/foreign.c Normal file
View file

@ -0,0 +1,11 @@
#include "labwc.h"
void
foreign_toplevel_handle_create(struct view *view)
{
view->toplevel_handle = wlr_foreign_toplevel_handle_v1_create(
view->server->foreign_toplevel_manager);
view_update_title(view);
wlr_foreign_toplevel_handle_v1_output_enter(view->toplevel_handle,
view_wlr_output(view));
}