Add view_impl .close

This commit is contained in:
Johan Malm 2020-09-02 21:00:28 +01:00
parent b99977368d
commit 625722cb66
4 changed files with 19 additions and 4 deletions

View file

@ -198,6 +198,9 @@ void cursor_button(struct wl_listener *listener, void *data)
/* Focus that client if the button was _pressed_ */
view_focus(view);
switch (view_area) {
case LAB_DECO_BUTTON_CLOSE:
view->impl->close(view);
break;
case LAB_DECO_PART_TITLE:
interactive_begin(view, LAB_CURSOR_MOVE, 0);
break;