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

View file

@ -150,6 +150,8 @@ void view_focus(struct view *view)
/* Note: this function only deals with keyboard focus. */
if (!view)
return;
/* TODO: messy - sort out */
if (!view->mapped) {
view->impl->map(view);
return;