summaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* Merge pull request #2703 from RyanDwyer/csd-borderLibravatar Drew DeVault2018-10-03
|\ | | | | Add CSD to border modes
| * Remove server-decoration assumption if view supports xdg-decorationLibravatar Ryan Dwyer2018-09-27
| |
| * Improve CSD logicLibravatar Ryan Dwyer2018-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This does the following: * Removes the xdg-decoration surface_commit listener. I was under the impression the client could ignore the server's preference and set whatever decoration they like using this protocol, but I don't think that's right. * Adds a listener for the xdg-decoration request_mode signal. The protocol states that the server should respond to this with its preference. We'll always respond with SSD here. * Makes it so tiled views which use CSD will still have sway decorations rendered. To do this, using_csd had to be added back to the view struct, and the border is changed when floating or unfloating a view.
| * Rename view_set_csd_from_client to view_update_csd_from_clientLibravatar Ryan Dwyer2018-09-27
| |
| * Remove CSD from toggle list if client doesn't support itLibravatar Ryan Dwyer2018-09-27
| |
| * Add CSD to border modesLibravatar Ryan Dwyer2018-09-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces view.using_csd with a new border mode: B_CSD. This also removes sway_xdg_shell{_v6}_view.deco_mode and view->has_client_side_decorations as we can now get these from the border. You can use `border toggle` to cycle through the modes including CSD, or use `border csd` to set it directly. The client must support the xdg-decoration protocol, and the only client I know of that does is the example in wlroots. If the client switches from SSD to CSD without us expecting it (via the server-decoration protocol), we stash the previous border type into view.saved_border so we can restore it if the client returns to SSD. I haven't found a way to test this though.
* | Fix tiling criteriaLibravatar Ryan Dwyer2018-10-03
| |
* | Set focus_inactive on a sibling when a container closes in an inactive workspaceLibravatar Ryan Dwyer2018-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Handle border options for gapsLibravatar Brian Ashworth2018-10-01
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'master' into fix-2653Libravatar Ryan Dwyer2018-10-02
|\ \
| * \ Merge pull request #2735 from RedSoxFan/fix-quotesLibravatar Drew DeVault2018-10-01
| |\ \ | | | | | | | | Do not strip quotes for exec or bind commands
| | * | Do not strip quotes for cmd_setLibravatar Brian Ashworth2018-09-30
| | | |
| | * | Do not strip quotes for exec or bind commandsLibravatar Brian Ashworth2018-09-30
| | | | | | | | | | | | | | | | | | | | Leave quotes intact for cmd_exec, cmd_exec_always, cmd_bindcode, and cmd_bindsym
* | | | Fix smart gapsLibravatar Brian Ashworth2018-10-01
|/ / /
* | | Merge pull request #2737 from Ragnis/criteria-floatingLibravatar Drew DeVault2018-09-30
|\ \ \ | |/ / |/| | Parse floating criteria
| * | Parse floating criteriaLibravatar Ragnis Armus2018-09-30
| | |
* | | Add support for installing binaries with DT_RPATHLibravatar Arkadiusz Hiler2018-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2726 from RyanDwyer/overhaul-gapsLibravatar Drew DeVault2018-09-30
|\ \ \ | | | | | | | | Make gaps implementation consistent with i3-gaps
| * | | Update gaps documentationLibravatar Ryan Dwyer2018-09-29
| | | |
| * | | Don't allow negative gapsLibravatar Ryan Dwyer2018-09-29
| | | |
| * | | Make gaps implementation consistent with i3-gapsLibravatar Ryan Dwyer2018-09-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2728 from RedSoxFan/move-sticky-on-evacLibravatar Drew DeVault2018-09-30
|\ \ \ \ | | | | | | | | | | Move sticky containers in output_evacuate
| * | | | Move sticky containers in output_evacuateLibravatar Brian Ashworth2018-09-28
| |/ / /
* | | | Merge pull request #2725 from PumbaPe/add-tap-and-dragLibravatar Drew DeVault2018-09-30
|\ \ \ \ | | | | | | | | | | Add tap and drag to sway-input
| * | | | add tap-and-drag setting to sway-inputLibravatar PP2018-09-29
| | | | |
* | | | | Turn funcs() into funcs(void)Libravatar Arkadiusz Hiler2018-09-30
| | | | | | | | | | | | | | | | | | | | If they really do not take undefined number of arguments.
* | | | | Remove libcap/prctl artifactsLibravatar Arkadiusz Hiler2018-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They seem like relics of the pasts, from when we were retaining the ptrace cap. Some translations still may need updates.
* | | | | Fix hotplugging down to zero outputsLibravatar Ryan Dwyer2018-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #2698 from ianyfan/hide-cursorLibravatar emersion2018-09-29
|\ \ \ \ \ | | | | | | | | | | | | Only show cursor if pointer configured
| * | | | | cursor: allow cursor_set_image to accept a NULL image to hide cursorLibravatar Ian Fan2018-09-24
| | | | | |
| * | | | | seat: only show cursor if pointer configuredLibravatar Ian Fan2018-09-24
| | | | | |
* | | | | | Merge pull request #2729 from RyanDwyer/resize-return-falseLibravatar emersion2018-09-29
|\ \ \ \ \ \ | | | | | | | | | | | | | | Return an error when resizing is a no op
| * | | | | | Return an error when resizing is a no opLibravatar Ryan Dwyer2018-09-29
| | |_|/ / / | |/| | | |
* | | | | | Fix quote handling for commandsLibravatar Brian Ashworth2018-09-28
| | | | | | | | | | | | | | | | | | | | | | | | Quotes are now stripped for all arguments and stripped before anything is unescaped
* | | | | | Handle shell special characters in bg file pathLibravatar Brian Ashworth2018-09-28
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | sway{,bar,input}.5: changes for generic blocksLibravatar Brian Ashworth2018-09-28
| | | | |
* | | | | sway.5: update set command informationLibravatar Brian Ashworth2018-09-28
| |/ / / |/| | |
* | | | swaybar: fix setting binding mode indicatorLibravatar Ian Fan2018-09-28
| | | |
* | | | Check for NULL output in workspace_valid_on_outputLibravatar Ryan Dwyer2018-09-28
| | | |
* | | | Rename workspace_outputs to workspace_configs and fix memory leakLibravatar Ryan Dwyer2018-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | transaction: do not use pointers for stateLibravatar Ian Fan2018-09-28
| | | |
* | | | Fix floating views in tabbed/stacked workspaces not getting frame eventsLibravatar Ryan Dwyer2018-09-28
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 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 optionLibravatar Ian Fan2018-09-27
| | |
* | | Merge pull request #2704 from ianyfan/tablet-configLibravatar Drew DeVault2018-09-27
|\ \ \ | | | | | | | | input: enable configuring tablets with libinput
| * | | input: enable configuring tablets with libinputLibravatar Ian Fan2018-09-24
| |/ /
* | | Make sway/ipc-server.c POSIX 2001 compliantLibravatar sghctoma2018-09-26
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Fix race condition crash when view unmaps + maps quicklyLibravatar Ryan Dwyer2018-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a view unmaps, we start a transaction to destroy the container, then when the transaction completes we destroy the container and unset the view's container pointer. But if the view has remapped in the meantime, the view's container pointer will be pointing to a different container which should not be cleared. This adds a check to make sure the view is still pointing to the container being destroyed before clearing the pointer. The freeing of the title format is also removed as it is already freed when the view destroys in view_destroy.
* | | Add a missing null check for moving tiling containersLibravatar Alexander Bakker2018-09-25
| | |
* | | Fix crash when disconnecting outputLibravatar Ryan Dwyer2018-09-25
|/ / | | | | | | | | | | | | | | | | | | | | If the output being disconnected contains views, and the views are being relocated to another output of a different size, a transaction must occur to reconfigure them. This means by the time container_discover_outputs is called, the output is already disabled and wlr_output is NULL. I considered making it check output->wlr_output, but output->enabled should work just as well and is more descriptive.
* | Implement support for input wildcardLibravatar Brian Ashworth2018-09-23
| |