mirror of
https://github.com/labwc/labwc.git
synced 2026-02-07 04:07:42 -05:00
add pointer constraints
This commit is contained in:
parent
bd1e6f3728
commit
f5072151a9
5 changed files with 127 additions and 9 deletions
|
|
@ -269,6 +269,15 @@ server_init(struct server *server)
|
|||
wlr_data_control_manager_v1_create(server->wl_display);
|
||||
wlr_gamma_control_manager_v1_create(server->wl_display);
|
||||
|
||||
server->relative_pointer_manager = wlr_relative_pointer_manager_v1_create(
|
||||
server->wl_display);
|
||||
server->constraints = wlr_pointer_constraints_v1_create(
|
||||
server->wl_display);
|
||||
|
||||
server->new_constraint.notify = create_constraint;
|
||||
wl_signal_add(&server->constraints->events.new_constraint,
|
||||
&server->new_constraint);
|
||||
|
||||
server->input_inhibit =
|
||||
wlr_input_inhibit_manager_create(server->wl_display);
|
||||
if (!server->input_inhibit) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue