Add xwayland-unmanaged.c

Handle xwayland override_direct surfaces separately from the view
struct - in order to simplify code, particularly in view.c
This commit is contained in:
Johan Malm 2020-09-04 20:25:20 +01:00
parent d831743b25
commit 8e7f2e78cd
8 changed files with 162 additions and 24 deletions

11
src/seat.c Normal file
View file

@ -0,0 +1,11 @@
#include "labwc.h"
void seat_focus_surface(struct wlr_surface *surface)
{
if (!surface) {
wlr_seat_keyboard_notify_clear_focus(server.seat);
return;
}
/* TODO: add keyboard stuff */
wlr_seat_keyboard_notify_enter(server.seat, surface, NULL, 0, NULL);
}