Commit Graph

43 Commits

Author SHA1 Message Date
MaxVerevkin e603c5460a river-status: correctly advertise version 4
This should have been a compile error but slipped through due to a bug
in zig-wayland. This bug has now been fixed and the submodule updated.
2022-12-02 15:19:13 +01:00
Isaac Freund 3ed71c51e2 deps: update to latest zig-wlroots
This fixes a crash handling switch toggle events
2022-11-20 11:33:42 +01:00
Isaac Freund 489a49735a river: update to wlroots 0.16 2022-11-13 16:16:07 +01:00
Isaac Freund 7402cb8aea deps: update to latest zig-wlroots
This fixes the return type of Foo.fromWlrSurface() functions which can
in fact return null in the edge case that the role matches but the
corresponding object has already been destroyed.
2022-07-01 20:53:45 +02:00
Isaac Freund 7d9d889226 deps: update to latest zig-wlroots
This fixes a nasty ABI bug that could cause river to crash when
hotplugging down to 0 outputs.
2022-06-23 18:50:00 +02:00
Isaac Freund d47be3b592 deps: update to latest zig-wayland 2022-05-11 18:02:32 +02:00
Peter Kaplan 44aaee3a51 command/map: layout-pinned mappings
e.g. `riverctl map -layout 0 normal Super Y spawn foot`

When this mapping is checked against a pressed key, layout 0 will be used to translate the pressed key instead of the currently active layout.

The number denotes to an index of the layouts set with
`XKB_DEFAULT_LAYOUT`.
2022-04-27 18:31:08 +02:00
Peter Kaplan 60fdefc3fd input: add map-switch/unmap-switch commands
This allows running a command on a laptop's lid being opened/closed
or a tablet's button/switch being pressed/toggled.
2022-04-14 12:49:47 +02:00
Isaac Freund e16eabd928 Xwayland: move window to top of X11 stack on focus
This is required for X11 input handling to work properly with
overlapping windows.
2022-01-02 04:32:28 +00:00
Isaac Freund c1d985ac29 build: update to zig version 0.9.0 2021-12-24 05:28:14 +00:00
Isaac Freund 6a093fecee river: remove wlroots 0.14 workarounds
Since updating to wlroots 0.15 we can remove several workarounds we had
in place due to wlroots improvements.
2021-12-22 20:15:57 +00:00
Isaac Freund 2288778dd7 ci: update for wlroots 0.15.0 2021-12-22 03:56:47 +00:00
Isaac Freund c34d850397 layer-shell: fix regression from wlroots 0.15 update
The way wlroots handles the layer surface configure flow has changed a
bit and river's logic needs updating.
2021-12-21 19:41:47 +00:00
Isaac Freund 4d19621f1e river: update to wlroots 0.15.0 2021-12-21 03:18:30 +00:00
Isaac Freund bd70c010e9 Cursor: add workaround in pointer drag termination
Currently wlroots sends use the drag destroy event before sending the
wl_data_device.leave event to the client, which makes things a bit
awkward. My patch fixing this has been merged to wlroots master so we
can remove this when upgrading to wlroots 0.15, but until then this
workaround will fix the issue.
2021-11-23 22:54:19 +01:00
Isaac Freund 50814e0ffe pointer-constraints: fix coordinates
Currently the implementation treats the x/y coordinates of
View.State.box as layout coordinates instead of output-relative. This
causes issues when using an output not at 0,0.
2021-10-11 15:01:57 +02:00
novakane e59c2a73d7 river: implement xdg-activation-v1
- add a new "urgent" border color
- add a new event to river-status-unstable-v1

Co-authored-by: Isaac Freund <ifreund@ifreund.xyz>
2021-08-19 12:58:52 +00:00
Isaac Freund 505639432e Revert "build: assert wlroots version at comptime"
zig-wlroots now has this assert built in

This reverts commit 3392b21aa8.
2021-06-24 20:21:07 +02:00
Isaac Freund 3392b21aa8 build: assert wlroots version at comptime
This will prevent people compiling river against the wrong wlroots
version and wondering why it crashes.
2021-06-24 19:34:15 +02:00
Isaac Freund 41874b47ae code: update to wlroots 0.14.0 2021-06-23 15:35:10 +02:00
Leon Henrik Plickat 833248e805 Add basic input configuration 2021-06-13 10:37:36 -07:00
Isaac Freund c0a2286847 code: update to zig 0.8.0 2021-06-05 17:29:58 +00:00
Isaac Freund 13f01bcb4b render: do basic yes/no damage tracking 2021-05-24 16:43:21 +02:00
Isaac Freund ec2c50b33f deps: update to latest zig-wayland 2021-04-27 12:24:30 +02:00
novakne 84f5283889 pixman: update and fix PointerConstraint 2021-04-22 10:33:28 +02:00
novakne df3e993013 river: fix to work with latest zig-pixman 2021-04-20 13:14:45 +02:00
Isaac Freund 9e3e92050e river: update for wlroots 0.13.0 2021-04-08 00:21:17 +02:00
Isaac Freund 6438f193ae build: handle null install_prefix correctly 2021-03-22 11:54:51 +01:00
Isaac Freund 27cac16ced build: fix if wlroots x11 backend is disabled 2021-03-01 14:54:36 +01:00
Bonicgamer 26b0acddb7 river: pointer-constraints and relative-pointer 2021-02-22 14:47:31 +01:00
Marten Ringwelski 870f0b746e Implement pointer-gestures-unstable-v1 2021-02-15 18:18:18 +01:00
Leon Henrik Plickat 7029a5cd3e output: add output_title default option
Outputs now have a default option, "output_title". If this changes, the
outputs title is set to the option value. This title is currently only
relevant when run nested in a wayland/X11 session.

Co-authored-by: Isaac Freund <ifreund@ifreund.xyz>
2021-02-02 01:14:06 +01:00
Isaac Freund afe1f197aa deps: update to lastest zig-wlroots 2021-01-25 12:33:15 +01:00
Isaac Freund 18bab45d4c riverctl: implement river-options interface
To make this cleaner, introduce some arg-parsing infrastructure that
will useful when porting riverctl to river-control-v2 in the future as
well.
2021-01-18 22:30:52 +01:00
Isaac Freund 8cbccbfb6e river-options: implement 2021-01-16 23:51:15 +01:00
Isaac Freund cc08be2dee code: clean up listener initialization 2020-12-31 15:35:35 +01:00
Isaac Freund 760c88b094 foreign-toplevel-management: basic implementation
We do no yet set the parent of toplevels. We also only honor activate
requests if the target view is already visible on the focused output.
2020-12-24 13:07:59 +01:00
Isaac Freund 20d804cdb5 code: switch to custom wlroots/libwayland bindings
This is a big step up over @cImport() for ergonomics and type safety.
Nearly all void pointer casts have been eliminated!
2020-12-13 22:53:33 +01:00
Isaac Freund 807d4a4212 keyboard: handle destruction 2020-11-29 21:05:27 +01:00
Isaac Freund f1e5f1aacb style: fix zig fmt regression
CI works now so this shouldn't happen again
2020-11-21 11:53:37 +01:00
Isaac Freund 6c52f9cc2b code: use std.ascii.spaces 2020-11-03 00:36:53 +01:00
Isaac Freund a7459026f6 code: port riverctl to zig-wayland 2020-11-02 13:59:59 +01:00
Isaac Freund a895970561 Add submodule 2020-11-01 13:58:54 +01:00