mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Give exclusive focus to layers above shell layer
This commit is contained in:
parent
623a08e14f
commit
56078edd65
3 changed files with 48 additions and 2 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#include <wlr/types/wlr_output_damage.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "sway/input/input-manager.h"
|
||||
#include "sway/input/seat.h"
|
||||
#include "sway/layers.h"
|
||||
#include "sway/output.h"
|
||||
#include "sway/server.h"
|
||||
|
|
@ -208,7 +210,10 @@ void arrange_layers(struct sway_output *output) {
|
|||
}
|
||||
}
|
||||
|
||||
wlr_log(L_DEBUG, "topmost layer: %p", topmost);
|
||||
struct sway_seat *seat;
|
||||
wl_list_for_each(seat, &input_manager->seats, link) {
|
||||
seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static void handle_output_destroy(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue