aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-02-01 09:26:30 +0100
committerLibravatar GitHub <noreply@github.com>2019-02-01 09:26:30 +0100
commit47271552b0f5ae5dbba6efd3882e5cce2d83070e (patch)
treeca0bff9d26283b0fa790855e7379e8da2e89166b /sway/input/cursor.c
parentRebase #1636 against current master (diff)
parentpointer_constraint: change to a seat subcommand (diff)
downloadsway-47271552b0f5ae5dbba6efd3882e5cce2d83070e.tar.gz
sway-47271552b0f5ae5dbba6efd3882e5cce2d83070e.tar.zst
sway-47271552b0f5ae5dbba6efd3882e5cce2d83070e.zip
Merge pull request #3550 from RedSoxFan/seat-pointer-constraint
pointer_constraint: change to a seat subcommand
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index e51d3e38..106b1910 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -1458,7 +1458,7 @@ void handle_pointer_constraint(struct wl_listener *listener, void *data) {
1458void sway_cursor_constrain(struct sway_cursor *cursor, 1458void sway_cursor_constrain(struct sway_cursor *cursor,
1459 struct wlr_pointer_constraint_v1 *constraint) { 1459 struct wlr_pointer_constraint_v1 *constraint) {
1460 struct seat_config *config = seat_get_config(cursor->seat); 1460 struct seat_config *config = seat_get_config(cursor->seat);
1461 if (!config->allow_constrain) { 1461 if (config->allow_constrain == CONSTRAIN_DISABLE) {
1462 return; 1462 return;
1463 } 1463 }
1464 1464