aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-29docs: add toggle-fullscreenIsaac Freund2-2/+8
2020-06-29render: draw fullscreen views properlyIsaac Freund1-34/+48
- use a solid black background - only draw the overlay layer
2020-06-29seat: prioritize fullscreen views for focusIsaac Freund2-19/+22
2020-06-29command: disable focus-view in fullscreenIsaac Freund1-0/+3
2020-06-29river: implement toggle-fullscreenIsaac Freund7-16/+79
The command works, but behaves a little strangely. Also, fullscreen views are not yet rendered on an opqaue backdrop.
2020-06-28view: use saved geometry for borders if neededIsaac Freund5-34/+3
This fixes the issues caused by 60f06a1 and greatly simplifies the code. Turns out we were already tracking the dimensions needed.
2020-06-28view: replace mode with float/fullscreen boolsIsaac Freund6-24/+30
The enum would be awkward here since if a view is fullscreened while floating it should still be floating when defullscreened.
2020-06-28view: draw borders around actual dimensionsIsaac Freund5-9/+39
Previously if the view did not take the size requested, we would draw the borders around the size we asked the view to take rather than its actual size.
2020-06-28code: fix testsIsaac Freund1-10/+10
2020-06-28cursor: fix viewAt() orderingIsaac Freund1-3/+12
Focused views must be checked first as they are always rendered on top.
2020-06-27view: simplify default float dimension handlingIsaac Freund3-39/+27
2020-06-27view: introduce state struct to simplify codeIsaac Freund12-124/+105
The state struct holds all of the state that is double-buffered and applied through transactions. This more explicit handling simplifies much of the code, and will allow for easier implementation of new feature such as fullscreen.
2020-06-27view: use a mode enum instead of floating boolIsaac Freund7-73/+58
This is in preperation for fullscreen support which will add another mode to this enum. This commit also fixes a bug that allowed clicking floating views though layout views in some cases.
2020-06-26command: log output of commands run by mappingsIsaac Freund3-14/+34
2020-06-26command: allow output on success, refactorIsaac Freund19-122/+104
2020-06-26config: fix leak of hashmap keysIsaac Freund2-2/+8
2020-06-26command: dupe mode name memoryIsaac Freund2-2/+8
The hashmap doesn't take ownership of the memory pointer to by these slices, so we need to dupe them to avoid use-after-free.
2020-06-26river-status: fix view-tags array sizeIsaac Freund1-2/+2
2020-06-26seat: pass a null terminated stringIsaac Freund1-2/+2
2020-06-26code: improve error handling consistencyIsaac Freund11-40/+23
2020-06-26code: clean up server initIsaac Freund2-23/+15
2020-06-25data-control: implement protocolIsaac Freund2-0/+3
2020-06-22docs: fix typo in README.mdAnatole Lefort1-1/+1
2020-06-19command: add background_color optionIsaac Freund4-2/+9
This is trivial to support and allows basic customization without running a layer-shell program such as swaybg. This is especially useful in low memory situations.
2020-06-19river-status: fix memory leakIsaac Freund1-0/+1
2020-06-19bikeshed: rename util.allocator to util.gpaIsaac Freund18-47/+47
This is less typing and more clear. A definite win.
2020-06-19code: refactor layoutExternalIsaac Freund1-25/+14
- Use an arena allocator, cleaner and should be faster. - Simplify construction of the command to be run
2020-06-19layout: fix loop counterIsaac Freund1-1/+2
The counter should not be incremented if the view was floating.
2020-06-19rivertile: fix underflow if views < mastersIsaac Freund1-1/+1
2020-06-17code: refactor Server.start()Isaac Freund1-19/+5
This was needlessly verbose
2020-06-17editorconfig: add scdoc configIsaac Freund1-0/+4
2020-06-17docs: tweak readmeIsaac Freund1-7/+5
2020-06-17docs: small man pages fixes and updatesLennard Hofmann5-17/+23
- Previous hard-coded settings can be now be changes with riverctl or via environment variables - Update "See also" - Mod → Mod1
2020-06-17cli: allow setting log level with '-l' flagIsaac Freund2-4/+22
2020-06-17code: improve logging functionsIsaac Freund18-92/+207
this implements a modified version of the logging interface proposed here: https://github.com/ziglang/zig/pull/5348
2020-06-16river-status: fix crash due to bad alignmentIsaac Freund1-12/+16
Using an ArrayList to back the wl_array we need to pass to libwayland is much safer and avoids this kind of bug.
2020-06-16code: create util.allocator and use globallyIsaac Freund17-86/+76
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-16code: create voidCast() util functionIsaac Freund18-79/+80
2020-06-16river-status: actually destroy the manager objectIsaac Freund1-1/+3
2020-06-16river-control: implement protocol changesIsaac Freund2-38/+77
2020-06-16river-control: send output on success, fix issuesIsaac Freund1-10/+35
Add an output arg to the success event on the callback. This allows for implementing commands that return values, which are planned. Replace the array of null terminated strings with a series of requests each adding a single string to the args array. This is more idiomatic wayland. Add a seat argument to the run_command request to allow for proper multi-seat support in the future. Add missing destructor request.
2020-06-16contrib: use rivertile in config.sh exampleIsaac Freund1-4/+7
2020-06-16docs: update readmeIsaac Freund1-5/+8
- clarify design goals - mention scdoc dependency - improve build command example
2020-06-16contrib: add tiled layout in pythonIsaac Freund1-0/+68
2020-06-16docs: add rivertile man pageIsaac Freund3-6/+59
2020-06-16rivertile: create default layout generatorIsaac Freund2-0/+135
2020-06-16Doc: Add layout documentationLeon Henrik Plickat3-2/+82
2020-06-16Contrib: Add debug layoutsLeon Henrik Plickat2-0/+60
2020-06-16Commands: rework layout commandLeon Henrik Plickat1-2/+3
2020-06-16Output: Add layoutExternal()Leon Henrik Plickat1-18/+103