Commit Graph

25 Commits

Author SHA1 Message Date
Bonicgamer 26b0acddb7 river: pointer-constraints and relative-pointer 2021-02-22 14:47:31 +01:00
foxfromabyss 98d51f6d24 Use std.log instead of log.zig 2021-02-08 18:35:11 +01:00
Isaac Freund cc08be2dee code: clean up listener initialization 2020-12-31 15:35:35 +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 f80992e329 meta: make copyright headers more maintainable
- list all files as copyright "The River Developers"
- add an AUTHORS file to acknowledge contributors
2020-11-11 20:33:43 +01:00
Marten Ringwelski 773c5ff687 Implement virtual_keyboard_unstable_v1 protocol 2020-10-31 17:02:08 +01:00
Marten Ringwelski 76217970f5 Implement wlr_virtual_pointer_unstable_v1 protocol 2020-10-31 09:47:57 +01:00
Leon Henrik Plickat 03a2da9690 Introduce mode "locked"
This mode is automatically entered when the screen is locked.
2020-10-19 16:00:17 +02:00
Isaac Freund 27b666dbba code: update to zig master in prep for 0.7.0
This commit makes the minimal necessary changes to get things working,
there are further changes which can be made to take advantage of new
features.
2020-10-02 20:34:24 +02:00
Isaac Freund d783347476 layer-shell: default to focused output
Layer shell clients may leave the output on which to display a layer
surface up to the compositor. Instead of always putting such surfaces
on the first output use the focused output of the default seat.
2020-09-29 17:27:33 +02:00
Isaac Freund 71a751f1ad seat: clean up initialization 2020-08-21 21:06:58 +02:00
Isaac Freund 7274761069 cursor: leave mode if target view is destroyed 2020-08-21 16:31:39 +02:00
Isaac Freund 7de2edb623 seat: implement kde idle protocol 2020-08-13 12:22:32 +02:00
Isaac Freund 7a6ac8eb6e seat: set focus before starting transactions
Focus was made double-buffered in 96a91fd. However, much of the code
still behaved as if focus was separate from the transaction system.
This commit completes the work started in 96a91fd and ensures that
focus is applied consistently in a single transaction.
2020-08-13 11:17:15 +02:00
Isaac Freund 0c4e3295b1 cursor: implement implicit grabs
When a button is held down and the cursor leaves a surface, events now
continue to be sent to the client. This allows e.g. dragging a scroll
bar from outside the surface.
2020-08-07 13:54:58 +02:00
Isaac Freund 91052f7477 cursor: refactor mode handling 2020-08-07 12:08:58 +02:00
Isaac Freund d87356c93a view: forbid mode change if cursor target
Making a floating view tiled during a resize breaks things badly.
2020-07-31 17:06:26 +02:00
Isaac Freund 8120829e5c xwayland: set seat
This makes e.g. the clipboard work.
2020-07-09 22:31:01 +02:00
Isaac Freund 341fe1e977 code: handle out of memory as well as possible 2020-07-05 22:49:17 +02:00
Isaac Freund 79bb0accac code: improve error handling consistency 2020-06-26 00:59:31 +02:00
Isaac Freund 12d34d4ded bikeshed: rename util.allocator to util.gpa
This is less typing and more clear. A definite win.
2020-06-19 14:32:30 +02:00
Isaac Freund d74323bbbf code: improve logging functions
this implements a modified version of the logging interface proposed
here: https://github.com/ziglang/zig/pull/5348
2020-06-17 01:31:38 +02:00
Isaac Freund c5de1641dc code: create util.allocator and use globally
river is not a library and passing a general purpose allocators around
everywhere does not make sense and leads to ugly code. This does not
prevent us from using local arenas if they are fitting.
2020-06-16 22:48:08 +02:00
Isaac Freund fb8d855ec9 code: create voidCast() util function 2020-06-16 20:54:05 +02:00
Isaac Freund 939beef168 Split river and riverctl directories 2020-06-01 15:56:50 +02:00