summaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* Fix whitespace issues.Libravatar Mikkel Oscar Lyderik2016-01-05
|
* Init layout before checking configLibravatar Mikkel Oscar Lyderik2016-01-05
|
* Revert "Free wordexp_t in config.c:get_config_path"Libravatar Drew DeVault2016-01-04
| | | | This reverts commit 33b24736c78d9993a26d295ea3e56ad77d6f1390.
* Free wordexp_t in config.c:get_config_pathLibravatar Drew DeVault2016-01-04
| | | | Thanks @jollywho
* Merge pull request #433 from crondog/issue431Libravatar Mikkel Oscar Lyderik2016-01-05
|\ | | | | Return focus to fullscreen view
| * Return focus to fullscreen viewLibravatar crondog2016-01-05
| | | | | | | | | | | | 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
* | Fix overwriting current pressed keys.Libravatar Mikkel Oscar Lyderik2016-01-04
|/ | | | | | 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`.
* swaybar: Implement binding_mode_indicatorLibravatar Mikkel Oscar Lyderik2016-01-03
|
* Add IPC event typesLibravatar Mikkel Oscar Lyderik2016-01-03
| | | | Adds custom IPC_EVENT_* types
* split toggleLibravatar crondog2015-12-31
| | | | | | | 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
* Dont try and fullscreen a workspace with no viewsLibravatar crondog2015-12-30
| | | | Found this completely by accident
* Merge pull request #418 from mikkeloscar/sway-handle-sigtermLibravatar Drew DeVault2015-12-29
|\ | | | | Handle SIGTERM sent to sway
| * Handle SIGTERM sent to swayLibravatar Mikkel Oscar Lyderik2015-12-29
| | | | | | | | | | | | | | This makes sway handle and gracefully shut down everything when receiving a SIGTERM. Fix #416
* | Fix use-after-free when closing fullscreen viewsLibravatar Drew DeVault2015-12-29
|/
* handlers: geometry_request: Better debug output.Libravatar S. Christoffer Eliesen2015-12-28
| | | | Previous output was confusing.
* arrange_windows_r: Round pixels to match reality, fixes calculations.Libravatar S. Christoffer Eliesen2015-12-28
| | | | | | | | | | | | | | | 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.
* arrange_windows_r: Bring parent coordinates into layout calculations.Libravatar S. Christoffer Eliesen2015-12-28
| | | | | This brings consistency into the algorithm (instead of resetting and then fetching again).
* Focus new sibling added to containerLibravatar Mikkel Oscar Lyderik2015-12-25
| | | | This makes sure that the window being added to a container gets focus.
* Trigger workspace init event (floating)Libravatar Mikkel Oscar Lyderik2015-12-25
| | | | | | | 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.
* Use SYSCONFDIR as recommendedLibravatar Yacine Hmito2015-12-23
| | | | | - swaylock config path not hardcoded anymore - the unusual and weird FALLBACK_CONFIG_DIR is no more
* Initialize id, part twoLibravatar Drew DeVault2015-12-22
|
* Initialize IDLibravatar Drew DeVault2015-12-22
|
* Merge pull request #393 from robotanarchy/musl-libc-compatibilityLibravatar Drew DeVault2015-12-21
|\ | | | | musl libc compatibility
| * replace non-standard qsort_r with qsortLibravatar robotanarchy2015-12-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * remove unused execinfo.h include from debug_log.cLibravatar robotanarchy2015-12-21
| |
* | Trigger ipc_event_workspace in all casesLibravatar Mikkel Oscar Lyderik2015-12-21
| | | | | | | | | | | | 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.
* | Merge pull request #390 from mikkeloscar/workspace-ipc-eventLibravatar Drew DeVault2015-12-21
|\ \ | | | | | | Don't skip all clients on ipc_workspace_event.
| * | Don't skip all clients on ipc_workspace_event.Libravatar Mikkel Oscar Lyderik2015-12-21
| | | | | | | | | | | | Only clients not subcriped to the workspace event should be skipped.
* | | Trigger event on bar mode|hidden_state commandsLibravatar Mikkel Oscar Lyderik2015-12-21
| | |
* | | Implement `barconfig_update` IPC eventLibravatar Mikkel Oscar Lyderik2015-12-21
|/ /
* | Handle bar commands outside config fileLibravatar Mikkel Oscar Lyderik2015-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix default swaybar fontLibravatar Drew DeVault2015-12-21
|/
* layout: Fix `edge_gaps off` with top/left panels.Libravatar S. Christoffer Eliesen2015-12-20
| | | | | 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.
* container: Fix inner gaps against screen edge.Libravatar S. Christoffer Eliesen2015-12-20
|
* Merge pull request #373 from sce/per_panel_configLibravatar Drew DeVault2015-12-20
|\ | | | | Per panel config
| * extensions: Track panels by wl_resource, position per panel.Libravatar S. Christoffer Eliesen2015-12-20
| | | | | | | | | | | | | | | | 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.
| * extensions: panel_config->resource => wl_surface_res.Libravatar S. Christoffer Eliesen2015-12-20
| | | | | | | | Change the name to something less ambigious.
* | Merge pull request #372 from sce/fix_swaybar_output_name_testLibravatar Drew DeVault2015-12-20
|\ \ | | | | | | config: load_swaybars: Fix name comparison.
| * | config: load_swaybars: Fix name comparison.Libravatar S. Christoffer Eliesen2015-12-20
| |/
* / config: free_bar: Check if outputs is NULL.Libravatar S. Christoffer Eliesen2015-12-20
|/ | | | | bar_config.outputs is NULL if no output is explicitly defined in config (ie. use for for all outputs).
* Implement compositor support for swaylockLibravatar Drew DeVault2015-12-18
| | | | This makes swaylock more or less work.
* Fix lock extension setup in compositorLibravatar Drew DeVault2015-12-18
|
* Merge pull request #361 from mikkeloscar/i3bar-commandLibravatar Drew DeVault2015-12-18
|\ | | | | Add support for running swaybar_command
| * Add support for running swaybar_commandLibravatar Mikkel Oscar Lyderik2015-12-19
| |
* | Fix default workspace name generationLibravatar Drew DeVault2015-12-18
|/ | | | This fixes the issue where workspace 10 ends up being the default.
* Merge pull request #360 from sce/fix_arrange_windowsLibravatar Drew DeVault2015-12-18
|\ | | | | Fix arrange windows
| * layout: arrange_windows: Partially fix swaybar irregularties.Libravatar S. Christoffer Eliesen2015-12-18
| |
| * layout: arrange_windows: Fix/better debug output.Libravatar S. Christoffer Eliesen2015-12-18
| |
* | Merge pull request #359 from mikkeloscar/i3bar-commandLibravatar Drew DeVault2015-12-18
|\ \ | | | | | | Add bar option: swaybar_command <command>
| * | Add bar option: swaybar_command <command>Libravatar Mikkel Oscar Lyderik2015-12-19
| |/