Commit Graph

53 Commits

Author SHA1 Message Date
2b0b32c030 Simplify some code 2020-04-27 10:35:53 +02:00
c5826b04f4 Properly set initial usable box of outputs 2020-04-26 18:15:53 +02:00
550bd493cd Greatly simplify view offset handling
Fixes https://github.com/ifreund/river/issues/9
2020-04-26 16:49:50 +02:00
454e2454b6 Separate View from its implementation
This is done in preperation for Xwayland support
2020-04-26 12:29:08 +02:00
f133d0b391 Revert "Deduplicate some state"
I changed my mind, it's cleaner to keep things like this and will be
consistent with views.
2020-04-26 01:59:54 +02:00
5baa9f58e7 Deduplicate some state 2020-04-25 23:28:26 +02:00
1362061c4c Implement floating views 2020-04-22 22:51:18 +02:00
94760394b4 Bikeshed variable names 2020-04-21 16:29:17 +02:00
472e2b2624 Fix layer sufaces holding focus after unmap 2020-04-19 15:15:50 +02:00
c959a426b7 Implement wlr-input-inhibitor 2020-04-19 14:31:41 +02:00
cd9d4ee395 Grab seats focused on the output for layer shell 2020-04-19 14:31:40 +02:00
5244618b01 Implement keyboard interactivity for layer shell 2020-04-19 14:31:40 +02:00
fb2639a226 Send surface enter/leave events 2020-04-18 16:21:26 +02:00
cd19a4615b Properly clean up resources on exit 2020-04-18 12:21:43 +02:00
0557d9df9d Close layer surfaces on output destroy 2020-04-17 19:31:38 +02:00
0976243372 Handle destruction of outputs 2020-04-17 13:02:18 +02:00
a6eeb5bbba Clean up layer arrangement 2020-04-15 14:39:43 +02:00
652a347fa0 Handle exclusive zone of -1 properly 2020-04-15 14:35:05 +02:00
5bbfcab60e Improve handling of layer surface output assignment 2020-04-15 13:38:36 +02:00
2126ef07f8 Get rid of redundant create output global call. 2020-04-15 12:30:27 +02:00
5da3935c18 Don't advertise the noop output 2020-04-15 12:23:14 +02:00
b822084f39 Allow storing *View in ViewStack
This is done in preparation for implementing focus stacks.
2020-04-13 17:25:39 +02:00
59b9172393 Handle layer shell protocol error
Requesting a size of 0 without setting opposing anchors in that dimension is
a protocol error.
2020-04-11 21:40:06 +02:00
03691722b2 Handle exclusive zones of layer surfaces 2020-04-11 20:34:51 +02:00
ff833a07d3 Move output specific code out of root
This is in preperation of proper output event handling and eventual
multi output support.
2020-04-11 14:24:20 +02:00
e77506a003 Move rendering out of output to a new namespace 2020-04-10 22:50:46 +02:00
bd91bacee9 Implement initial layer shell support
exclusive zones and popups are still TODO
2020-04-10 16:49:52 +02:00
fa65333789 Refactor keybindings to be runtime defined. 2020-04-07 21:48:56 +02:00
626b2c691b Rename gaps -> padding 2020-04-07 11:54:46 +02:00
aef2245272 Implement inner gaps 2020-04-05 18:31:55 +02:00
259e554921 Fix overdraw of top/bottom borders 2020-04-05 16:36:33 +02:00
bcb143fe13 Highlight border of focused view 2020-04-05 16:32:43 +02:00
89d2a86851 Draw borders around views 2020-04-05 14:26:22 +02:00
5be50921d4 Avoid a crash caused by a race conditon 2020-04-04 23:35:07 +02:00
ea88cca35f Take future borders into account for surface size 2020-04-04 23:26:15 +02:00
8d68d1e7cf Fix iteration in handleFrame 2020-04-04 16:51:14 +02:00
6cb9f6ac04 Add a data structure to manage the view stack 2020-04-04 16:51:02 +02:00
57f27f7cc6 Implement tag assignment
There are a few bugs with this, but the core logic is sound
2020-04-02 13:44:24 +02:00
42d454b26f Implement infrastructure for tags 2020-04-01 17:50:49 +02:00
d0bfa7bb01 Make c import a little cleaner 2020-03-29 19:36:15 +02:00
f5304237b5 Pass self as immutable where possible 2020-03-29 15:58:04 +02:00
d787e2c2cc Initial atomic layout update implementation 2020-03-26 21:32:30 +01:00
34e47360f5 Add Root struct
Server handles listening for wayland signals. It delegates input handling
to Seat and output handling to Root.
2020-03-25 15:59:24 +01:00
aaecef8c5c Make function names camelCase
This conforms with the zig style guidelines:
https://ziglang.org/documentation/master/#Style-Guide
2020-03-24 21:13:56 +01:00
46fe1baa96 Use Self = @This() in all structs
This seems to be the idiomatic way to do things.
2020-03-24 20:48:38 +01:00
b3bad0ca93 Make all things const
The quest for idiomatic zig continues
2020-03-24 20:35:45 +01:00
4872a68378 Remove superfluous .*.
I may be be slowly getting the hang of this language.
2020-03-24 20:03:48 +01:00
e01a150f6d Get rid of [*c] pointers 2020-03-24 19:44:56 +01:00
a5a84d8164 Rework things to stop invalidating pointers 2020-03-24 02:00:58 +01:00
523d629fe0 Get things compiling again 2020-03-23 16:50:20 +01:00