aboutsummaryrefslogtreecommitdiff
path: root/sway
AgeCommit message (Collapse)Author
2016-02-28Correctly move focus from one output to a new one.Mikkel Oscar Lyderik
This patch aims to correctly handle moving focus <left|right|up|down> between outputs. For instance, if moving from one output to a new output at the left of the current one, it should focus the right-most view/container on the new output, and the opposite if moving from right to left. This should happen regardless of the previously stored focus of the new output. This also handles moving to a new output above or below the current one.
2016-02-27Merge pull request #492 from mikkeloscar/swaybar-multi-outputDrew DeVault
Display single swaybar on multiple outputs
2016-02-27Free config before exiting sway.Mikkel Oscar Lyderik
Apart from freeing the sway_config struct, this also terminates the swaybars spawned by sway, since they are linked by PID to the bar config structs.
2016-02-27Improve how swaybars are spawnedMikkel Oscar Lyderik
2016-02-27Add outputs to bar_config ipc responseMikkel Oscar Lyderik
2016-02-27Make sway spawn only one bar per bar configMikkel Oscar Lyderik
2016-02-27Set pointer pos before focusing view under itMikkel Oscar Lyderik
2016-02-26Correctly exit sway on errors.Mikkel Oscar Lyderik
Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
2016-02-25Fix for when sway_abort doesn't exitYacine Hmito
sway_terminate does an exit in case wlc_terminate doesn't
2016-02-25Fixed swaymsg command name in sway(5) docYacine Hmito
2016-02-25No options when using sway as IPC clientYacine Hmito
Sway used to attempt sending an IPC command composed of every argument after the first non-option argument encountered. Now, raises an error if an option is encountered before the intended command. Some options such as -h or -v take effect when parsing, so they still apply.
2016-02-25Removed p as a valid CLI optionYacine Hmito
The get-socketpath long option had an undocumented short alternative as `p`. It has been removed. However, the code in the options array is still the 'p' char.
2016-02-25Don't rearrange views behind swaylock.Mikkel Oscar Lyderik
Fix #481
2016-02-25Check for empty ws on view destroyed.Mikkel Oscar Lyderik
In some cases destroying a view can result in an empty and inactive workspace, which should be destroyed. This handles those cases.
2016-02-25Send workspace ICP event on ws destroy/empty.Mikkel Oscar Lyderik
There is no 'destroy' change type in the i3 IPC so this uses `empty` to notify about empty workspaces (which will be destroyed from sway right after).
2016-02-25Prevent crash when showing scratchpad on new ws.Mikkel Oscar Lyderik
Fix #469
2016-02-12Prefer named output config over wildcard config.Mikkel Oscar Lyderik
This makes sure that a named output config is applied before the general wildcard config when a new output is created. This ensures that the config: output * ... output NAME ... behaves the same way as: output NAME ... output * ...
2016-02-08Replace deprecated function wlc_output_get_pixels.Mikkel Oscar Lyderik
This makes IPC GET_PIXELS use the new `wlc_pixels_read` call instead of the deprecated `wlc_output_get_pixels`. The old version worked by passing a callback function to wlc which would grab the pixels and send them to the IPC client. The new version works by maintaining a list of clients who have requested the pixels of some output and then grap and send the pixels in the output_post_render hook of the `wlc_interface`.
2016-02-08Squash trailing whitespaceMikkel Oscar Lyderik
2016-02-08Fix clang warningsMikkel Oscar Lyderik
2016-02-08Add wlc-render.h to handlers.cDrew DeVault
2016-01-28commands: move position mousecrondog
Bounds checking works ok except it overlaps the bar. Just like with normal floating. Should be fixed once swaybar is fixed.
2016-01-27font: Allow adding font to the config. In prep for border titlescrondog
v2: Give default font and make bar use it if no bar font
2016-01-26Fix returning to sway after swaylock completesDrew DeVault
2016-01-25Add quotes to multiword arguments.Mikkel Oscar Lyderik
This adds quotes around multiword arguments before they are passed to `/bin/sh -c` in an exec command. Example: I connect to irc like this: exec termite -e "mosh server tmux a" Without this patch the arguments are passed to sh as: termite -e mosh server tmux a When it should be: termite -e "mosh server tmux a" For the command to work.
2016-01-23Merge pull request #457 from mikkeloscar/move-view-fixDrew DeVault
Fix rendering of view when moving to new workspace
2016-01-23Add new wlc thing to viewsDrew DeVault
2016-01-23Revert "s/numlen/log10/g"Drew DeVault
This reverts commit 038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370.
2016-01-23s/numlen/log10/gDrew DeVault
2016-01-23commands: Fix memory allocation in assignQuentin Glidic
Also use the safer snprintf since we just computed the size. Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-01-23commands: Fix usage of arrow in assignQuentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-01-23sway-input: fix typoChristoph Gysin
2016-01-22manpage: fix sway-input layoutMikkel Oscar Lyderik
2016-01-22manpage: add references sway.5 <-> sway-input.5Mikkel Oscar Lyderik
2016-01-22Fix generating sway-input.5 manpageMikkel Oscar Lyderik
2016-01-22cmake: fix libinput include dirsMikkel Oscar Lyderik
2016-01-22Prevent ipc from crashing swaycrondog
2016-01-21Fix rendering of view when moving to new workspaceMikkel Oscar Lyderik
This is a possible fix for #384. To be honest I don't fully understand why this bug is happening, but I have narrowed it down to the view stack in wlc and how sway orders views in very specific situations (those described in #384). Anyway this should fix the problem by eliminating the call to `wlc_view_bring_to_front` which isn't really needed anyway since sending all invisible views to the back is the same as bringing all visible views to the front (rotating the view stack).
2016-01-21Only update visibility if WS isn't destroyed afterMikkel Oscar Lyderik
No need to update visibility if the workspace will be destroyed right after.
2016-01-21Fix issue #455Yacine Hmito
CMAKE_INSTALL_FULL_SYSCONFIG is not actually passed to the C preprocessor. I remember it working, so I must have messed up somewhere last time I touched this. This is fixed by manually passing its value to the C preprocessor through the SYSCONFDIR definition
2016-01-21Fix memory leak in config.cDrew DeVault
Thanks @jollywho
2016-01-21Strip stray whitespaceMikkel Oscar Lyderik
2016-01-19libinputCole Mickens
2016-01-15cmd_assigncrondog
This implements cmd_assign. Basically a copy and paste from cmd_for_window however it has → handling and injects a `move container to workspace`
2016-01-11Strip quotes from workspace name v2Mikkel Oscar Lyderik
This is a more general fix for #444 This reverts part of commit 222f0d44fcda494dca4d5278493a3082068743de.
2016-01-11Strip quotes of each argv when handling commandMikkel Oscar Lyderik
2016-01-11Strip quotes from workspace name.Mikkel Oscar Lyderik
Fix #444 This is a temporary fix, the real fix is to store the commands as a formatted argv array, so they don't have to be reformatted all over the place.
2016-01-09Add backwards compatability for binding eventMikkel Oscar Lyderik
2016-01-09Add bindcode to binding events.Mikkel Oscar Lyderik
2016-01-09Add support for bincode commandMikkel Oscar Lyderik
If a bindsym and bincode maps to the same combination, the last one will overwrite any previous mappings.