mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
rootston: make roots_view embedded and remove unions
This commit is contained in:
parent
9f11bf571e
commit
9adcbabea4
10 changed files with 411 additions and 398 deletions
|
|
@ -1293,9 +1293,12 @@ void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view) {
|
|||
bool unfullscreen = true;
|
||||
|
||||
#if WLR_HAS_XWAYLAND
|
||||
if (view && view->type == ROOTS_XWAYLAND_VIEW &&
|
||||
view->xwayland_surface->override_redirect) {
|
||||
unfullscreen = false;
|
||||
if (view && view->type == ROOTS_XWAYLAND_VIEW) {
|
||||
struct roots_xwayland_surface *xwayland_surface =
|
||||
roots_xwayland_surface_from_view(view);
|
||||
if (xwayland_surface->xwayland_surface->override_redirect) {
|
||||
unfullscreen = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -1322,10 +1325,13 @@ void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view) {
|
|||
}
|
||||
|
||||
#if WLR_HAS_XWAYLAND
|
||||
if (view && view->type == ROOTS_XWAYLAND_VIEW &&
|
||||
!wlr_xwayland_or_surface_wants_focus(
|
||||
view->xwayland_surface)) {
|
||||
return;
|
||||
if (view && view->type == ROOTS_XWAYLAND_VIEW) {
|
||||
struct roots_xwayland_surface *xwayland_surface =
|
||||
roots_xwayland_surface_from_view(view);
|
||||
if (!wlr_xwayland_or_surface_wants_focus(
|
||||
xwayland_surface->xwayland_surface)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
struct roots_seat_view *seat_view = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue