mirror of
https://github.com/swaywm/sway.git
synced 2026-03-06 01:40:42 -05:00
Update for swaywm/wlroots#1243
This commit is contained in:
parent
5f9be1e1aa
commit
7699c5444c
9 changed files with 35 additions and 35 deletions
|
|
@ -807,8 +807,8 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
|
|||
|
||||
// Handle clicking a layer surface
|
||||
if (surface && wlr_surface_is_layer_surface(surface)) {
|
||||
struct wlr_layer_surface *layer =
|
||||
wlr_layer_surface_from_wlr_surface(surface);
|
||||
struct wlr_layer_surface_v1 *layer =
|
||||
wlr_layer_surface_v1_from_wlr_surface(surface);
|
||||
if (layer->current.keyboard_interactive) {
|
||||
seat_set_focus_layer(seat, layer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -769,7 +769,7 @@ void seat_set_focus_surface(struct sway_seat *seat,
|
|||
}
|
||||
|
||||
void seat_set_focus_layer(struct sway_seat *seat,
|
||||
struct wlr_layer_surface *layer) {
|
||||
struct wlr_layer_surface_v1 *layer) {
|
||||
if (!layer && seat->focused_layer) {
|
||||
seat->focused_layer = NULL;
|
||||
struct sway_node *previous = seat_get_focus_inactive(seat, &root->node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue