mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-26 06:59:52 -05:00
Add wlr_surface_is_*_surface
And wlr_*_surface_from_wlr_surface
This commit is contained in:
parent
9ae861c416
commit
333ab59902
9 changed files with 65 additions and 2 deletions
|
|
@ -271,8 +271,9 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
|
|||
break;
|
||||
case WLR_BUTTON_PRESSED:
|
||||
roots_seat_set_focus(seat, view);
|
||||
if (surface && !view) {
|
||||
struct wlr_layer_surface *layer = surface->role_data;
|
||||
if (wlr_surface_is_layer_surface(surface)) {
|
||||
struct wlr_layer_surface *layer =
|
||||
wlr_layer_surface_from_wlr_surface(surface);
|
||||
if (layer->current.keyboard_interactive) {
|
||||
roots_seat_set_focus_layer(seat, layer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue