sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit f8a91171491c1e8a3591461aa540511ec4fe4875
parent 907595b10db44dee9f366ff36947c63bf6433fee
Author: vilhalmer <vil@vil.lv>
Date:   Sun,  3 Feb 2019 13:46:44 -0500

Fall back to wildcard in sway_cursor_constrain

Diffstat:
Msway/input/cursor.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/sway/input/cursor.c b/sway/input/cursor.c @@ -1459,6 +1459,10 @@ void handle_pointer_constraint(struct wl_listener *listener, void *data) { void sway_cursor_constrain(struct sway_cursor *cursor, struct wlr_pointer_constraint_v1 *constraint) { struct seat_config *config = seat_get_config(cursor->seat); + if (!config) { + config = seat_get_config_by_name("*"); + } + if (!config || config->allow_constrain == CONSTRAIN_DISABLE) { return; }