mirror of
https://github.com/labwc/labwc.git
synced 2026-03-01 01:40:24 -05:00
Chase wlroots: convert to try_from
Chases: 711a1a3ed42150fdbc716e80719d482006075f69 xdg-shell: convert to try_from Chases: f9bd416d4156942ce3951a6c5cf9f81a3cf4a3dd layer-shell-v1: convert to try_from Chases: fbf5982e3838ee28b5345e98832f6956c402b225 xwayland/xwm: introduce wlr_xwayland_surface_try_from_wlr_surface()
This commit is contained in:
parent
d0b24f73d7
commit
b5220a723e
9 changed files with 27 additions and 33 deletions
|
|
@ -97,9 +97,9 @@ desktop_focus_view_or_surface(struct seat *seat, struct view *view,
|
|||
if (view) {
|
||||
desktop_focus_view(view, raise);
|
||||
#if HAVE_XWAYLAND
|
||||
} else if (wlr_surface_is_xwayland_surface(surface)) {
|
||||
} else {
|
||||
struct wlr_xwayland_surface *xsurface =
|
||||
wlr_xwayland_surface_from_wlr_surface(surface);
|
||||
wlr_xwayland_surface_try_from_wlr_surface(surface);
|
||||
if (xsurface && wlr_xwayland_or_surface_wants_focus(xsurface)) {
|
||||
seat_focus_surface(seat, surface);
|
||||
}
|
||||
|
|
@ -432,7 +432,7 @@ get_cursor_context(struct server *server)
|
|||
if (node->type == WLR_SCENE_NODE_BUFFER) {
|
||||
struct wlr_surface *surface = lab_wlr_surface_from_node(node);
|
||||
if (surface) {
|
||||
if (wlr_surface_is_layer_surface(surface)) {
|
||||
if (wlr_layer_surface_v1_try_from_wlr_surface(surface)) {
|
||||
ret.type = LAB_SSD_LAYER_SURFACE;
|
||||
}
|
||||
if (is_layer_descendant(node)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue