mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
view: add move_to_front to struct view_impl
...to increase xwayland and xdg-shell encapsulation and to avoid passing a function pointer as an argument in `xwayland_move_sub_views_to_front()` which is inconsistent with labwc design patterns. Rename view-impl.c to view-impl-common.c Move function declarations that are common to view-implementations from view.h into view-impl-common.h
This commit is contained in:
parent
440372c2da
commit
b8ec5a3e2e
10 changed files with 74 additions and 55 deletions
|
|
@ -1,16 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* view-impl.c: common code for shell view->impl functions */
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include "labwc.h"
|
||||
#include "view.h"
|
||||
|
||||
void
|
||||
view_impl_map(struct view *view)
|
||||
{
|
||||
desktop_focus_and_activate_view(&view->server->seat, view);
|
||||
desktop_move_to_front(view);
|
||||
|
||||
view_update_title(view);
|
||||
view_update_app_id(view);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue