aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-02Merge pull request #2745 from RyanDwyer/fix-focus-inactive-on-destroyDrew DeVault
Set focus_inactive on a sibling when a container closes in an inactive workspace
2018-10-02Set focus_inactive on a sibling when a container closes in an inactive workspaceRyan Dwyer
To reproduce the problem, create layout H[view V[view view view-focused]], then switch to another workspace and have the previously focused view in the vsplit close (eg. using criteria, or an mpv video finishing). Return to the workspace using `$mod+<num>` and the entire vsplit would be focused. This happens because handle_seat_node_destroy would only set a new focus if the currently focused view or a parent was being destroyed. To fix it, it needs to set a sibling of the destroying container to focus_inactive regardless of the current focus, then restore current focus if needed. This patch changes the function accordingly. Additionally: * The function now makes an early return if the node being destroyed is a workspace. * set_focus has been renamed to needs_new_focus. This variable is true if the head focus needs to be changed.
2018-10-02Merge pull request #2740 from RedSoxFan/gap-bordersRyan Dwyer
Handle gap borders
2018-10-01Handle border options for gapsBrian Ashworth
Fixes `hide_edge_borders smart` when gaps are in use. Implements `hide_edge_borders smart_no_gaps` and `smart_borders on|no_gaps|off`. Since `smart_borders on` is equivalent to `hide_edge_borders smart` and `smart_borders no_gaps` is equivalent to `hide_edge_borders smart_no_gaps`, I opted to just save the last value set for `hide_edge_borders` and restore that on `smart_borders off`. This simplifies the conditions for setting the border.
2018-10-02Merge pull request #2739 from RedSoxFan/fix-2653Ryan Dwyer
Fix smart gaps
2018-10-02Merge branch 'master' into fix-2653Ryan Dwyer
2018-10-01Merge pull request #2735 from RedSoxFan/fix-quotesDrew DeVault
Do not strip quotes for exec or bind commands
2018-10-01Fix smart gapsBrian Ashworth
2018-09-30Merge pull request #2737 from Ragnis/criteria-floatingDrew DeVault
Parse floating criteria
2018-09-30Parse floating criteriaRagnis Armus
2018-09-30Do not strip quotes for cmd_setBrian Ashworth
2018-09-30Do not strip quotes for exec or bind commandsBrian Ashworth
Leave quotes intact for cmd_exec, cmd_exec_always, cmd_bindcode, and cmd_bindsym
2018-09-30Merge pull request #2734 from ivyl/use_rpathemersion
Add support for installing binaries with DT_RPATH
2018-09-30Add support for installing binaries with DT_RPATHArkadiusz Hiler
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.
2018-09-30Merge pull request #2726 from RyanDwyer/overhaul-gapsDrew DeVault
Make gaps implementation consistent with i3-gaps
2018-09-30Merge pull request #2728 from RedSoxFan/move-sticky-on-evacDrew DeVault
Move sticky containers in output_evacuate
2018-09-30Merge pull request #2725 from PumbaPe/add-tap-and-dragDrew DeVault
Add tap and drag to sway-input
2018-09-30Merge pull request #2730 from ivyl/remove_cap_leftoversDrew DeVault
Remove libcap/prctl artifacts
2018-09-30Turn funcs() into funcs(void)Arkadiusz Hiler
If they really do not take undefined number of arguments.
2018-09-30Remove declarations that do no have definitionsArkadiusz Hiler
There is a couple of leftover header files/declarations, which were fronting implementations that are long gone. Let's get rid of them.
2018-09-30Remove libcap/prctl artifactsArkadiusz Hiler
They seem like relics of the pasts, from when we were retaining the ptrace cap. Some translations still may need updates.
2018-09-30Merge pull request #2733 from ianyfan/swaybaremersion
swaybar: synchronize rendering to output frames
2018-09-30swaybar: synchronize rendering to output framesIan Fan
2018-09-30Merge pull request #2732 from RyanDwyer/fix-zero-outputsemersion
Fix hotplugging down to zero outputs
2018-09-30Fix hotplugging down to zero outputsRyan Dwyer
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.
2018-09-29Merge pull request #2698 from ianyfan/hide-cursoremersion
Only show cursor if pointer configured
2018-09-29add tap-and-drag setting to sway-inputPP
2018-09-29Merge pull request #2729 from RyanDwyer/resize-return-falseemersion
Return an error when resizing is a no op
2018-09-29Merge pull request #2635 from RedSoxFan/fix-bg-specialemersion
Handle shell special characters in bg file path
2018-09-29Return an error when resizing is a no opRyan Dwyer
2018-09-28Move sticky containers in output_evacuateBrian Ashworth
2018-09-28Fix quote handling for commandsBrian Ashworth
Quotes are now stripped for all arguments and stripped before anything is unescaped
2018-09-28Handle shell special characters in bg file pathBrian Ashworth
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.
2018-09-29Update gaps documentationRyan Dwyer
2018-09-29Don't allow negative gapsRyan Dwyer
2018-09-29Make gaps implementation consistent with i3-gapsRyan Dwyer
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.
2018-09-28Merge pull request #2724 from RedSoxFan/update-man-pagesDrew DeVault
Update man pages - dynamic vars and generic blocks
2018-09-28sway{,bar,input}.5: changes for generic blocksBrian Ashworth
2018-09-28sway.5: update set command informationBrian Ashworth
2018-09-28Merge pull request #2723 from ianyfan/swaybarDrew DeVault
swaybar: small fixes and clean-ups
2018-09-28swaybar: trim function prototypesIan Fan
2018-09-28swaybar: move i3bar definitions into separate fileIan Fan
2018-09-28swaybar: remove unused focused_output propertyIan Fan
2018-09-28swaybar: fix setting binding mode indicatorIan Fan
2018-09-28swaybar: fail if bar id is invalidIan Fan
2018-09-28Merge pull request #2722 from RyanDwyer/workspace-configsemersion
Rename workspace_outputs to workspace_configs and fix memory leak
2018-09-28Check for NULL output in workspace_valid_on_outputRyan Dwyer
2018-09-28Rename workspace_outputs to workspace_configs and fix memory leakRyan Dwyer
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.
2018-09-28Merge pull request #2720 from swaywm/swaylock-shadowemersion
Add support for building swaylock without PAM
2018-09-28Add support for building swaylock without PAMDrew DeVault
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.