aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2020-02-04criteria: match containers without viewAnders-32/+49
Closes #4929 Replaces criteria_get_views with criteria_get_containers which can return containers without views when the criteria only contains container properties.
2020-02-04Change wordingCyril Levis-9/+10
2020-02-04Add the possibility to capture only one screen if several screens are use.Cyril Levis-4/+11
2020-02-04fix typoLucas M. Dutra-1/+1
2020-01-30ipc: Handle unsupported binding event typesNathan Rossi-2/+15
Handle binding event types that cannot be encoded gracefully by dropping the event. This prevents issues for binding types like BINDING_SWITCH, where the event would cause a crash.
2020-01-27add danish READMEsalkin-mada-1/+66
2020-01-24Docs: Add marks field to get_tree responseJason Nader-0/+3
2020-01-24Fix compiling with -fno-commonthermitegod-2/+3
2020-01-23Adding the link to the Portuguese on the English version of README.mdJamelly Ferreira-1/+1
2020-01-23Adding a version of README.md in PortugueseJamelly Ferreira-0/+66
2020-01-22Update version to 1.4Drew DeVault-2/+2
2020-01-22fish-completion: use the correct fallback directoryEli Schwartz-1/+1
fish completions should never be installed to share/fish/completions/ as that directory is reserved exclusively for completions shipped as part of the fish source code. Use the same vendor_completions.d/ directory which the default fish configuration uses.
2020-01-22completion: use pkg-config to get install location for bash/fishEli Schwartz-2/+12
Both shells provide pkg-config files which declare their designated completionsdir. Use this as the primary source of truth.
2020-01-22meson: use join_paths to build paths, instead of string concatEli Schwartz-8/+8
It makes sure to handle paths as paths, and is generally safer and the blessed solution.
2020-01-20Add documentation for floating_modifierAlex Maese-2/+3
2020-01-20Add ability to remove the floating modifierAlex Maese-0/+5
2020-01-18Check argc>0 before strcasecmp. Should shortcircuitJason Nader-11/+5
2020-01-18commands/move: Fix crash when required args not providedJason Nader-2/+8
Fixes #4919.
2020-01-16output: apply oc to outputs using wl_for_each_safeBrian Ashworth-2/+2
If applying an output config to an output fails, the output may be destroyed. To be able to handle this situation correctly, apply_output_config_to_outputs needs to use wl_list_for_each_safe.
2020-01-16cmd_split: Refuse to split scratchpad hidden split containersRonan Pigott-1/+1
2020-01-16cmd_move: Fix crash when moving to scratchpad hidden split containersRonan Pigott-8/+13
2020-01-16Fix crash when showing scratchpad hidden split containersRonan Pigott-1/+15
2020-01-16desktop/output: fix mem leak in handle_new_outputBrian Ashworth-0/+1
This fixes a memory leak of oc (the output config) in handle_new_output. Output configs returned from find_output_config are not stored and need to be freed after use.
2020-01-16sway.5: Document missing bindsym flags for unbindsymRonan Pigott-5/+7
sway.5: Remove indents within long command descriptions
2020-01-16sway-input.5: Document repeat_delay and repeat_rate only onceRonan Pigott-10/+4
2020-01-16ipc-json: Remove unnecessary dereferenceRonan Pigott-1/+1
2020-01-16commands/split: Fix error message typosRonan Pigott-2/+2
2020-01-15Revert "Make all the container dimensions integers"Simon Ser-11/+11
This reverts commit 79c5f5ba1245a8c3d575770419a6501447e78919. Fixes: https://github.com/swaywm/sway/issues/4908
2020-01-14container: add inactive fullscreen to focus stackBrian Ashworth-0/+5
When a container was being made fullscreen and it is on the focused workspace for a seat, focus was being set to the container. However, when the container was on a non-focused workspace, the focus stack wasn't being touched. When assigning a fullscreen container to a workspace or moving a fullscreen container to a different workspace, this would make it so the fullscreen container was never added to the focus stack for the workspace thus preventing access to the workspace. This adds the container to the top of the focus stack, behind the container on the focused workspace.
2020-01-13Docs: explain why menu command should be passed to swayJason-1/+2
It was not obvious to me why until I saw a comment from @RyanDwyer on Reddit, so I think it's better to add an explanation.
2020-01-13Fix unreliable scaling filterSimon Ser-2/+7
Two changes were made: - Bind the texture before glTexParameteri - Set the scaling filter before each wlr_render_texture_with_matrix call Logging in wlroots allows to check that the scaling filter is properly set prior to rendering. Fixes: 6968fb3123e6 ("add scale_filter output config option") Closes: https://github.com/swaywm/sway/issues/4798
2020-01-13Amend typoJason Nader-1/+1
2020-01-10integer scaling, not integralCassandra McCarthy-2/+2
2020-01-09Use transparency arg in the window focus eventJR Boyens-5/+5
2020-01-09view: remove workspace pid mapping for assignsBrian Ashworth-8/+26
If a view is mapped to a workspace using an assign, the pid should still be removed from the pid mapping list. This prevents child processes from matching against it and mapping a view to a likely undesired workspace.
2020-01-06input/cursor: handle setting a NULL image surfaceBrian Ashworth-7/+13
This fixes a crash when attempting to listen to a signal on a NULL cursor image surface. If the surface is NULL, the listener is just reinitialized using wl_list_init.
2020-01-05input/cursor: handle image surface destroyBrian Ashworth-0/+19
This adds a listener for the destroy event of the cursor image surface. This prevents a use-after-free when the last visible image surface is freed, there has not been a new cursor set, and the cursor is reshown.
2020-01-05render: do not render indicator on floating viewsBrian Ashworth-2/+2
This adds a check to make it so the indicator is only rendered on views with a parent, which floating views do not. Since floating views do not have a parent, the workspace layout was being incorrectly used to determine whether to show the split indicator previously. This has no impact on floating containers and a view within a floating container will still have indicators rendered appropriately.
2020-01-05swaybar: Fix input device removalAndri Yngvason-8/+10
Before swaybar would exit with a protocol error when a pointer or touch device was removed.
2020-01-05swaynag: Add multi-seat supportAndri Yngvason-35/+98
This also adds cleanup for all seat resources
2020-01-05Fix small typo in sway-input(5)Ross Schulman-1/+1
2020-01-05Add missing items to documentation for GET_TREE response in ipc.Thayne McCombs-0/+31
A few items in the response for the get_tree ipc call were missing from the documentation. This adds some documentation for them.
2020-01-03xwayland: handle size_hints == NULLRouven Czerwinski-0/+9
In case xcb-iccm is not installed on the system, size_hints will be null. Handle this as if the get_constraints functions was not implemented and return the defaults. Fixes #4870
2020-01-01input: Assign virtual input devices to their selected seatsAndri Yngvason-4/+19
2020-01-01Make all the container dimensions integersPedro Côrte-Real-11/+11
Containers are always fixed to the pixel grid so position and size them with integers instead of doubles. Functionally this should be no different since rounding down is already being done on things like layout. But it makes it clear what the intention is and avoids bugs where fractional pixels are used. The translating and moving code is still using doubles because the cursors can have fractional pixels and thus the code is plumbed that way. But that could also probably be changed easily by doing the integer conversions earlier and plumbing with int.
2020-01-01Make sure we don't calculate fractional pixel gapsPedro Côrte-Real-2/+2
When gaps are resized for lack of space the calculation could result in a gap size of non-integer pixels. This would result in containers located at non-integer pixels which would be subtly broken.
2020-01-01Avoid numerical instability in resizePedro Côrte-Real-6/+33
Because the layout code rounds down the dimensions of the windows resizing would often be off by one pixel. The width/height fraction would not exactly reflect the final computed width and so the resize code would end up calculating things wrong. To fix this first snap the container size fractions to the pixel grid and only then do the resize. Also use round() instead of floor() during layout to avoid a slightly too small width. This applies in two cases: 1. For the container we are actually resizing using floor() might result in being 1px too small. 2. For the other containers it might result in resizing them down by 1px and then if the container being resized is the last all those extra pixels would make the resize too large. Fixes #4391
2019-12-31Update wlroots versionDrew DeVault-1/+1
2019-12-31_incr_version: always overwrite old version numberDrew DeVault-2/+2
2019-12-31_incr_version: prompt for target wlroots releaseDrew DeVault-0/+8