aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-03-27build: clean up install prefix/config path derivationIsaac Freund1-13/+10
This could be cleaned up even further with https://github.com/ziglang/zig/pull/8329
2021-03-27Fix crash when layer surface dimensions or margins are unexpectedly largeLeon Henrik Plickat1-2/+32
2021-03-27riverctl: Do not use std.debug.print()Leon Henrik Plickat1-2/+3
2021-03-27riverctl: Print error messages instead of error traces for common user mistakesLeon Henrik Plickat1-0/+29
2021-03-22build: fix config path if DESTDIR is set without --prefixIsaac Freund1-1/+2
2021-03-22build: handle null install_prefix correctlyIsaac Freund2-11/+15
2021-03-16riverctl: add fish completionFollieHiyuki2-0/+91
2021-03-16Fix existing typosFollieHiyuki2-9/+9
2021-03-14completions: add zsh completion for riverctlnovakne2-0/+112
2021-03-14Add bash completion for riverctlLeon Henrik Plickat2-0/+82
2021-03-01build: fix if wlroots x11 backend is disabledIsaac Freund2-1/+1
2021-02-22river: pointer-constraints and relative-pointerBonicgamer7-6/+206
2021-02-19river-control: fix various bugsIsaac Freund1-9/+19
It kinda shows that this was the first protocol I ever implemented server-side: - Use client as well as ID for keys in the hashmap as IDs might (and will) be the same between clients. - Clear saved args after running a command.
2021-02-17toplevel-management: send output enter on mapIsaac Freund1-0/+2
2021-02-17Deny move/resize requests from tiled XdgToplevel ViewsLeon Henrik Plickat1-2/+2
2021-02-15Implement pointer-gestures-unstable-v1Marten Ringwelski4-0/+97
2021-02-14command: silently ignore re-declaring a modeIsaac Freund1-8/+1
This change is made in the interest of allowing users to simply re-run their init script at runtime without errors. Making this an error doesn't really gain us anything.
2021-02-14command: allow map/map-pointer overwrite existingIsaac Freund1-37/+19
The ergonomics of remapping keys are currently quite bad as unmap must first be called for every mapping before defining a new one. Any benefit that might be gained by the current strictness of map/ map-pointer is outweighed by this fact. In a similar spirit, silently ignore unmapping a non-existent mapping.
2021-02-14xdg shell: use XdgSurface.getGeometry()Isaac Freund1-3/+5
This is important to use instead of direct access as clients are not strictly required to set a geometry, in which caese the dimensions of the wl_surface are used instead.
2021-02-10swap: use correct direction for it_wrapAlexey Yerin1-1/+1
Always using .forward results in a crash when running `swap previous` on the first view in stack which should be wrapped.
2021-02-09riverctl: add mod-option commandLeon Henrik Plickat3-0/+76
2021-02-08Use std.log instead of log.zigfoxfromabyss16-249/+127
2021-02-07riverctl: add -focused-output for option commandsIsaac Freund4-13/+75
This is more convenient for interactive usage and makes using the same bindings across multiple outputs easy.
2021-02-02riverctl: improve handling of null string optionsIsaac Freund1-3/+3
Passing an empty string as the value argument for riverctl set-option or declare-option will set the value to null. The riverctl get-option command produces no output for both null and empty string values. This is not perfect as it is unable to distinguish between null and empty strings through the riverctl CLI. I don't see a better alternative here however. Forbidding null strings in the river-options protocol would be one solution, however null strings are useful and more pleasant to use from code despite being problematic on the CLI.
2021-02-02river-options: fix setting null string optionsIsaac Freund1-1/+1
2021-02-02output: add output_title default optionLeon Henrik Plickat5-2/+51
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-01-31xwayland: allow setting size if unmapped/floatingIsaac Freund1-2/+23
This effectively allows unmapped and floating xwayland views to set their own dimensions, which seems to make some popups less broken.
2021-01-25deps: update to lastest zig-wlrootsIsaac Freund1-0/+0
2021-01-21river-options: free options of destroyed outputsIsaac Freund3-0/+10
This is done when river's internal Output struct is destroyed, not when the advertised wl_output global is removed. This means that options will persist when an output is disabled and re-enabled.
2021-01-18riverctl: implement river-options interfaceIsaac Freund6-22/+379
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-18river-option: compositor may ignore set requestsIsaac Freund1-11/+26
This allows the compositor to restrict options to a certain set of values, which can be desirable if the options affect compositor behavior. This was always the intended behavior of the protocol, but now it is explicitly stated.
2021-01-16river-options: implementIsaac Freund6-9/+352
2021-01-16river-options: create protocolIsaac Freund1-0/+147
2021-01-12code: remove unneeded c.zig @import()sIsaac Freund5-7/+0
2021-01-08cursor: ensure output focus before focusing layerIsaac Freund1-0/+1
2021-01-08cursor: focus output before view on follow cursorIsaac Freund1-1/+1
2021-01-07xwayland: use layout coords for configuresIsaac Freund1-4/+9
2021-01-07XwaylandUnmanaged: remove dead codeIsaac Freund1-32/+4
2021-01-07XdgPopup: fix unconstrainFromBox coordinatesIsaac Freund1-3/+7
2021-01-07render: iterate subsurfaces of popups manuallyIsaac Freund1-1/+18
wlr_xdg_surface_for_each_popup() fails to do this and wlr_xdg_surface_for_each_popup_surface() is not yet merged, so implement a workaround for now.
2021-01-07docs: fix typo in example init scriptIsaac Freund1-1/+1
2021-01-07cursor: fix down mode motion event coordsIsaac Freund1-2/+4
These are required to be surface local and we need to take the output's layout coords into account as the cursor itself is in layout coords.
2021-01-06render: pass Output by constant pointerIsaac Freund1-31/+38
This is semantically what we want as we store a pointer to the output in the SurfaceRenderData struct.
2021-01-05render: draw popups over bordersIsaac Freund5-26/+19
2021-01-02docs: update stance on line lengthIsaac Freund1-5/+5
2021-01-02command: Implement spawn-tagmaskMarten Ringwelski5-2/+32
2021-01-01build: derive default config path from install prefixAlex Mohr2-7/+13
- Add `default_config_path` build option for the river executable
2021-01-01view: fix build with xwayland disabledIsaac Freund1-1/+1
2021-01-01view: fix handling of title/app_id changeIsaac Freund3-21/+28
2020-12-31gitignore: remove outdated ignoresIsaac Freund1-2/+0
These are no longer need since switching to zig-wayland