mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
Rebase cursor on layer rearrange.
This commit is contained in:
parent
a1a99421a1
commit
7e6071b76e
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
#include "sway/desktop/transaction.h"
|
#include "sway/desktop/transaction.h"
|
||||||
#include "sway/input/input-manager.h"
|
#include "sway/input/input-manager.h"
|
||||||
#include "sway/input/seat.h"
|
#include "sway/input/seat.h"
|
||||||
|
#include "sway/input/cursor.h"
|
||||||
#include "sway/layers.h"
|
#include "sway/layers.h"
|
||||||
#include "sway/output.h"
|
#include "sway/output.h"
|
||||||
#include "sway/server.h"
|
#include "sway/server.h"
|
||||||
|
|
@ -211,6 +212,7 @@ void arrange_layers(struct sway_output *output) {
|
||||||
|
|
||||||
struct sway_seat *seat;
|
struct sway_seat *seat;
|
||||||
wl_list_for_each(seat, &server.input->seats, link) {
|
wl_list_for_each(seat, &server.input->seats, link) {
|
||||||
|
cursor_rebase(seat->cursor);
|
||||||
seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL);
|
seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue