aboutsummaryrefslogtreecommitdiff
path: root/sway
AgeCommit message (Collapse)Author
2016-01-05Init layout before checking configMikkel Oscar Lyderik
2016-01-04Revert "Free wordexp_t in config.c:get_config_path"Drew DeVault
This reverts commit 33b24736c78d9993a26d295ea3e56ad77d6f1390.
2016-01-04Free wordexp_t in config.c:get_config_pathDrew DeVault
Thanks @jollywho
2016-01-05Merge pull request #433 from crondog/issue431Mikkel Oscar Lyderik
Return focus to fullscreen view
2016-01-05Return focus to fullscreen viewcrondog
This fixes https://github.com/SirCmpwn/sway/issues/431 by returning focus to the fullscreen view. Also it fixes the issue with the fullscreen view pointer not being set which did my head in
2016-01-04Fix overwriting current pressed keys.Mikkel Oscar Lyderik
This fixes a bug where the key at index 0 in the `key_state_array` would be overwritten by the next pressed key. This broke any bindings consisting of multiple non-mod keys like: `$mod+a+b`.
2016-01-03swaybar: Implement binding_mode_indicatorMikkel Oscar Lyderik
2016-01-03Add IPC event typesMikkel Oscar Lyderik
Adds custom IPC_EVENT_* types
2015-12-31split togglecrondog
Not sure if you will accept this, but i find it useful (I use it when opening new terminal windows on a workspace v2: add short hand command and docs
2015-12-30Dont try and fullscreen a workspace with no viewscrondog
Found this completely by accident
2015-12-29Merge pull request #418 from mikkeloscar/sway-handle-sigtermDrew DeVault
Handle SIGTERM sent to sway
2015-12-29Handle SIGTERM sent to swayMikkel Oscar Lyderik
This makes sway handle and gracefully shut down everything when receiving a SIGTERM. Fix #416
2015-12-29Fix use-after-free when closing fullscreen viewsDrew DeVault
2015-12-28handlers: geometry_request: Better debug output.S. Christoffer Eliesen
Previous output was confusing.
2015-12-28arrange_windows_r: Round pixels to match reality, fixes calculations.S. Christoffer Eliesen
If the width or height of a container can't be evenly distributed to its children, then the layout algorithm still thought it got it right (due to using decimals) which caused a gap of one or more pixels for some window arrangements. This is fixed by this patch by first rounding off the width and height (so that decimals are never introduced) and then adjusting the last view in a container to fill the remaining pixels (which now is counted correctly due to the decimals being removed). Also, due to the way gaps are implemented, an odd sized gap can never be aligned properly, so just adjust to closest even number.
2015-12-28arrange_windows_r: Bring parent coordinates into layout calculations.S. Christoffer Eliesen
This brings consistency into the algorithm (instead of resetting and then fetching again).
2015-12-25Focus new sibling added to containerMikkel Oscar Lyderik
This makes sure that the window being added to a container gets focus.
2015-12-25Trigger workspace init event (floating)Mikkel Oscar Lyderik
Triggers workspace init event when moving a floating window to a new workspace. This is a follow up on #391 which didn't handle floating windows.
2015-12-23Use SYSCONFDIR as recommendedYacine Hmito
- swaylock config path not hardcoded anymore - the unusual and weird FALLBACK_CONFIG_DIR is no more
2015-12-22Initialize id, part twoDrew DeVault
2015-12-22Initialize IDDrew DeVault
2015-12-21Merge pull request #393 from robotanarchy/musl-libc-compatibilityDrew DeVault
musl libc compatibility
2015-12-22replace non-standard qsort_r with qsortrobotanarchy
I've tried to make as few changes, as possible. Usually the reason for using qsort_r is, that you can pass an extra userdata pointer to the compare function. However, in sway list_sort wrapped qsort_r and always called a wrapper function for comparing, the wrapper function then had the real compare function as argument. The only thing, that the wrapper function does, is dereferencing the 'left' and 'right' function arguments before passing them to the real compare function. I have renamed list_sort to list_qsort to avoid confusion (so nobody tries to use list_qsort like list_sort) and removed the wrapper functionality. Now the dereferencing must be done in the compare function, that gets passed. Some compare functions were used in both list_sort and list_seq_find. To make the difference clear, I've added a '_qsort' suffix to the compare functions, that are intended to be used with the new list_qsort. (In other words: list_qsort is not compatible anymore with list_seq_find). - Changed and renamed function (it isn't used anywhere but in commands.c, and only for sorting): compare_set -> compare_set_qsort - New wrapper functions: sway_binding_cmp_qsort (for sway_binding_cmp) sway_mouse_binding_cmp_qsort (for sway_mouse_binding_cmp)
2015-12-21Trigger ipc_event_workspace in all casesMikkel Oscar Lyderik
This makes sure that the workspace IPC event is triggered when needed. Fixes #382 while making sure that the IPC event is only triggered once.
2015-12-21remove unused execinfo.h include from debug_log.crobotanarchy
2015-12-21Merge pull request #390 from mikkeloscar/workspace-ipc-eventDrew DeVault
Don't skip all clients on ipc_workspace_event.
2015-12-21Don't skip all clients on ipc_workspace_event.Mikkel Oscar Lyderik
Only clients not subcriped to the workspace event should be skipped.
2015-12-21Trigger event on bar mode|hidden_state commandsMikkel Oscar Lyderik
2015-12-21Implement `barconfig_update` IPC eventMikkel Oscar Lyderik
2015-12-21Handle bar commands outside config fileMikkel Oscar Lyderik
Our initial implementation of `bar { }` assumed that the commands could only be used in the config. This is not true for two commands: * bar mode * bar hidden_state This patch makes it possible to issue these commands outside a bar block, for instance through swaymsg $ swaymsg bar mode hide bar-0 This does not implement the `barconfig_update` IPC event which should be trigged from these commands. I have added TODO's where this should be added once implemented.
2015-12-21Fix default swaybar fontDrew DeVault
2015-12-20layout: Fix `edge_gaps off` with top/left panels.S. Christoffer Eliesen
Since x/y won't be zero when there's a top or left panel in place, we need to take those coordinates into account too.
2015-12-20container: Fix inner gaps against screen edge.S. Christoffer Eliesen
2015-12-20Merge pull request #373 from sce/per_panel_configDrew DeVault
Per panel config
2015-12-20Merge pull request #372 from sce/fix_swaybar_output_name_testDrew DeVault
config: load_swaybars: Fix name comparison.
2015-12-20extensions: Track panels by wl_resource, position per panel.S. Christoffer Eliesen
Track each panel separately via its wl_resource. `set_panel_position` might be called before `set_panel`, so reuse panel config. Place the position in panel_config so that each panel has its own position.
2015-12-20extensions: panel_config->resource => wl_surface_res.S. Christoffer Eliesen
Change the name to something less ambigious.
2015-12-20config: load_swaybars: Fix name comparison.S. Christoffer Eliesen
2015-12-20config: free_bar: Check if outputs is NULL.S. Christoffer Eliesen
bar_config.outputs is NULL if no output is explicitly defined in config (ie. use for for all outputs).
2015-12-18Implement compositor support for swaylockDrew DeVault
This makes swaylock more or less work.
2015-12-18Fix lock extension setup in compositorDrew DeVault
2015-12-18Merge pull request #361 from mikkeloscar/i3bar-commandDrew DeVault
Add support for running swaybar_command
2015-12-19Add support for running swaybar_commandMikkel Oscar Lyderik
2015-12-18Fix default workspace name generationDrew DeVault
This fixes the issue where workspace 10 ends up being the default.
2015-12-18Merge pull request #360 from sce/fix_arrange_windowsDrew DeVault
Fix arrange windows
2015-12-18Merge pull request #359 from mikkeloscar/i3bar-commandDrew DeVault
Add bar option: swaybar_command <command>
2015-12-19Add bar option: swaybar_command <command>Mikkel Oscar Lyderik
2015-12-18layout: arrange_windows: Partially fix swaybar irregularties.S. Christoffer Eliesen
2015-12-18layout: arrange_windows: Fix/better debug output.S. Christoffer Eliesen
2015-12-18Terminate children when freeing output containerMikkel Oscar Lyderik