Age | Commit message (Collapse) | Author |
|
Add support for installing binaries with DT_RPATH
|
|
It's better to use DT_RPATH dynamic section of the elf binary to store
the paths of libraries to load instead of overwriting LD_LIBRARY_PATH
for the whole environment, causing surprises. This solution is much more
transparent and perfectly suitable for running contained installations
of wayland/wlroots/sway.
The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as
it's a placebo security at best - we should trust the execution path
that leads us to running sway, and it's way too late to care about those
variables since we already started executing our compositor, thus we
would be compromised anyway.
|
|
Make gaps implementation consistent with i3-gaps
|
|
Move sticky containers in output_evacuate
|
|
Add tap and drag to sway-input
|
|
Remove libcap/prctl artifacts
|
|
If they really do not take undefined number of arguments.
|
|
There is a couple of leftover header files/declarations, which were
fronting implementations that are long gone.
Let's get rid of them.
|
|
They seem like relics of the pasts, from when we were retaining the
ptrace cap.
Some translations still may need updates.
|
|
swaybar: synchronize rendering to output frames
|
|
|
|
Fix hotplugging down to zero outputs
|
|
When the last output is disconnected, output_disable is called like
usual and evacuates the output to the root->saved_workspaces list. It
then calls root_for_each_container to remove (untrack) the output from
each container's outputs list. However root_for_each_container did not
iterate the saved workspaces, so when the output gets freed the
containers would have a dangling pointer in their outputs list. Upon
reconnect, container_discover_outputs would attempt to use the dangling
pointer, causing a crash.
This makes root_for_each_container check the saved workspaces list,
which fixes the problem.
|
|
Only show cursor if pointer configured
|
|
|
|
Return an error when resizing is a no op
|
|
Handle shell special characters in bg file path
|
|
|
|
|
|
Quotes are now stripped for all arguments and stripped before anything is unescaped
|
|
This changes it back so the path given to swaybg is enclosed in quotes.
Additionally, the only character that is escaped in the path stored is
double quotes now. This makes it so we don't need to keep an exhaustive
list of characters that need to be escaped.
The end user will still need to escape these characters in their config
or when passed to swaybg.
|
|
|
|
|
|
This changes our gaps implementation to behave like i3-gaps.
Our previous implementation allowed you to set gaps on a per container
basis. This isn't supported by i3-gaps and doesn't seem to have a
practical use case. The gaps_outer and gaps_inner properties on
containers are now removed as they just read the gaps_inner from the
workspace.
`gaps inner|outer <px>` no longer changes the gaps for all workspaces.
It only sets defaults for new workspaces.
`gaps inner|outer current|workspace|all set|plus|minus <px>` is now
runtime only, and the workspace option is now removed. `current` now
sets gaps for the current workspace as opposed to the current container.
`workspace <ws> gaps inner|outer <px>` is now implemented. This sets
defaults for a workspace.
This also fixes a bug where changing the layout of a split container
from linear to tabbed would cause gaps to not be applied to it until you
switch to another workspace and back.
|
|
Update man pages - dynamic vars and generic blocks
|
|
|
|
|
|
swaybar: small fixes and clean-ups
|
|
|
|
|
|
|
|
|
|
|
|
Rename workspace_outputs to workspace_configs and fix memory leak
|
|
|
|
When we eventually implement `workspace <ws> gaps inner|outer <px>`,
we'll need to store the gaps settings for workspaces before they're
created. Rather than create a workspace_gaps struct, the approach I'm
taking is to rename workspace_outputs to workspace_configs and then add
gaps settings to that.
I've added a lookup function workspace_find_config. Note that we have a
similar thing for outputs (output_config struct and output_find_config).
Lastly, when freeing config it would create a memory leak by freeing the
list items but not the workspace or output names inside them. This has
been rectified using a free_workspace_config function.
|
|
Add support for building swaylock without PAM
|
|
This involves setuid'ing swaylock, which then forks and drops perms on
the parent process. The child process remains root and listens on a pipe
for requests to validate passwords against /etc/shadow.
|
|
Replace getdelim to make swaybar work on FreeBSD
|
|
Free transaction state upon destruction by removing pointer indirection
|
|
|
|
Fix floating views in tabbed/stacked workspaces not getting frame events
|
|
view_is_visible would return false, which meant the view wouldn't
receive a frame done event. view_is_visible needs to make an exception
for floating containers.
This also moves the workspace_is_visible check to an earlier location
for performance reasons.
|
|
input config: merge left_handed option
|
|
|
|
input: enable configuring tablets with libinput
|
|
Use _C11_SOURCE feature test macro on FreeBSD (fixes #2616)
|
|
This commit fixes a segfault in swaybar on FreeBSD that was caused by
using getdelim with EOF as delimiter on an infinite stream. The FreeBSD
implementation handles the "no more data, delimiter not found, and EOF
not reached" scenario as an error, so it can't be used to read the
output of status command. This commit replaces the getline/getdelim
calls with reading all available data from the stream in one go.
|
|
This commit replaces the non-standard SOCK_NONBLOCK and SOCK_CLOEXEC
flags with two fcntl calls. This makes the file POSIX 2001 compliant,
thus it is no longer necessary to conditionally define, or use internal
(__BSD_VISIBLE) feature test macros.
|
|
This will restrict the default namespace set on FreeBSD to the C11
standard (everything is visible by default), which will prevent possible
conflicts with symbols hidden behing __BSD_VISIBLE.
|