mirror of
https://github.com/labwc/labwc.git
synced 2026-03-14 05:33:52 -04:00
view: remove view_is_related(), no longer used
This commit is contained in:
parent
bb8f0bc960
commit
6a35e8e78c
3 changed files with 0 additions and 32 deletions
|
|
@ -108,8 +108,6 @@ struct view_impl {
|
||||||
void (*move_to_back)(struct view *view);
|
void (*move_to_back)(struct view *view);
|
||||||
struct view *(*get_root)(struct view *self);
|
struct view *(*get_root)(struct view *self);
|
||||||
void (*append_children)(struct view *self, struct wl_array *children);
|
void (*append_children)(struct view *self, struct wl_array *children);
|
||||||
/* determines if view and surface are owned by the same process */
|
|
||||||
bool (*is_related)(struct view *self, struct wlr_surface *surface);
|
|
||||||
struct view_size_hints (*get_size_hints)(struct view *self);
|
struct view_size_hints (*get_size_hints)(struct view *self);
|
||||||
/* if not implemented, VIEW_WANTS_FOCUS_ALWAYS is assumed */
|
/* if not implemented, VIEW_WANTS_FOCUS_ALWAYS is assumed */
|
||||||
enum view_wants_focus (*wants_focus)(struct view *self);
|
enum view_wants_focus (*wants_focus)(struct view *self);
|
||||||
|
|
@ -462,13 +460,6 @@ struct view *view_get_root(struct view *view);
|
||||||
void view_append_children(struct view *view, struct wl_array *children);
|
void view_append_children(struct view *view, struct wl_array *children);
|
||||||
bool view_on_output(struct view *view, struct output *output);
|
bool view_on_output(struct view *view, struct output *output);
|
||||||
|
|
||||||
/**
|
|
||||||
* view_is_related() - determine if view and surface are owned by the
|
|
||||||
* same application/process. Currently only implemented for xwayland
|
|
||||||
* views/surfaces.
|
|
||||||
*/
|
|
||||||
bool view_is_related(struct view *view, struct wlr_surface *surface);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* view_has_strut_partial() - returns true for views that reserve space
|
* view_has_strut_partial() - returns true for views that reserve space
|
||||||
* at a screen edge (e.g. panels). These views are treated as if they
|
* at a screen edge (e.g. panels). These views are treated as if they
|
||||||
|
|
|
||||||
11
src/view.c
11
src/view.c
|
|
@ -2007,17 +2007,6 @@ view_append_children(struct view *view, struct wl_array *children)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
view_is_related(struct view *view, struct wlr_surface *surface)
|
|
||||||
{
|
|
||||||
assert(view);
|
|
||||||
assert(surface);
|
|
||||||
if (view->impl->is_related) {
|
|
||||||
return view->impl->is_related(view, surface);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
view_has_strut_partial(struct view *view)
|
view_has_strut_partial(struct view *view)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -792,17 +792,6 @@ xwayland_view_append_children(struct view *self, struct wl_array *children)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
|
||||||
xwayland_view_is_related(struct view *view, struct wlr_surface *surface)
|
|
||||||
{
|
|
||||||
struct wlr_xwayland_surface *xsurface =
|
|
||||||
xwayland_surface_from_view(view);
|
|
||||||
struct wlr_xwayland_surface *xsurface2 =
|
|
||||||
wlr_xwayland_surface_try_from_wlr_surface(surface);
|
|
||||||
|
|
||||||
return (xsurface2 && xsurface2->pid == xsurface->pid);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
xwayland_view_set_activated(struct view *view, bool activated)
|
xwayland_view_set_activated(struct view *view, bool activated)
|
||||||
{
|
{
|
||||||
|
|
@ -837,7 +826,6 @@ static const struct view_impl xwayland_view_impl = {
|
||||||
.move_to_back = xwayland_view_move_to_back,
|
.move_to_back = xwayland_view_move_to_back,
|
||||||
.get_root = xwayland_view_get_root,
|
.get_root = xwayland_view_get_root,
|
||||||
.append_children = xwayland_view_append_children,
|
.append_children = xwayland_view_append_children,
|
||||||
.is_related = xwayland_view_is_related,
|
|
||||||
.get_size_hints = xwayland_view_get_size_hints,
|
.get_size_hints = xwayland_view_get_size_hints,
|
||||||
.wants_focus = xwayland_view_wants_focus,
|
.wants_focus = xwayland_view_wants_focus,
|
||||||
.has_strut_partial = xwayland_view_has_strut_partial,
|
.has_strut_partial = xwayland_view_has_strut_partial,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue