view: add view_set_activated()

Call wlr_foreign_toplevel_handle_v1_set_activated() from it in support of
issue #73
This commit is contained in:
Johan Malm 2021-10-16 19:24:26 +01:00
parent 54d22a7129
commit 70144ac113
4 changed files with 38 additions and 0 deletions

View file

@ -4,6 +4,18 @@
#include "labwc.h"
#include "ssd.h"
void
view_set_activated(struct view *view, bool activated)
{
if (view->impl->set_activated) {
view->impl->set_activated(view, activated);
}
if (view->toplevel_handle) {
wlr_foreign_toplevel_handle_v1_set_activated(
view->toplevel_handle, activated);
}
}
void
view_move_resize(struct view *view, struct wlr_box geo)
{