aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* swaybar: fix memory leaksLibravatar progandy2015-12-22
|
* swaybar: add a visible separator between elementsLibravatar progandy2015-12-22
|
* swaybar: Improve i3bar proto implementationLibravatar progandy2015-12-22
| | | | Also reintroduce plaintext fallback for simple status lines.
* swaybar: fix whitespaceLibravatar progandy2015-12-22
|
* Clean up a bitLibravatar crondog2015-12-22
|
* Make start on i3bar json parsingLibravatar crondog2015-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)
| * fix backtrace detection in CMakeLibravatar robotanarchy2015-12-22
| | | | | | | | works on arch (glibc) and void linux (tested with musl libc) now
| * add -fPIC flag (position independent code) like in wlcLibravatar robotanarchy2015-12-21
| | | | | | | | | | | | | | | | | | | | Linking fails otherwise: Linking C executable ../bin/sway /usr/bin/ld: CMakeFiles/sway.dir/commands.c.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC CMakeFiles/sway.dir/commands.c.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status sway/CMakeFiles/sway.dir/build.make:442: recipe for target 'bin/sway' failed
| * use CMake's FindBacktrace for backtrace feature detectionLibravatar robotanarchy2015-12-21
| |
| * remove unused execinfo.h include from debug_log.cLibravatar robotanarchy2015-12-21
| |
* | Merge pull request #391 from mikkeloscar/trigger-workspace-ipcLibravatar Drew DeVault2015-12-21
|\ \ | | | | | | Trigger ipc_event_workspace in all cases
| * | 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.
* | | Merge pull request #389 from mikkeloscar/bar-commandsLibravatar Drew DeVault2015-12-21
|\ \ \ | |/ / |/| | Implement ipc_event_barconfig_update
| * | Trigger event on bar mode|hidden_state commandsLibravatar Mikkel Oscar Lyderik2015-12-21
| | |
| * | Implement `barconfig_update` IPC eventLibravatar Mikkel Oscar Lyderik2015-12-21
| | |
* | | Merge pull request #388 from mikkeloscar/bar-commandsLibravatar Drew DeVault2015-12-21
|\| | | | | | | | Handle bar commands outside config file
| * | 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.
* | Merge pull request #387 from mikkeloscar/handle-term-signalLibravatar Drew DeVault2015-12-21
|\ \ | | | | | | swaybar: Correct handling of SIGTERM.
| * | swaybar: Correct handling of SIGTERM.Libravatar Mikkel Oscar Lyderik2015-12-21
|/ / | | | | | | | | | | | | | | | | Swaybar did not correctly handle the SIGTERM sent from sway when exiting, ultimately leaving the child status_command behind. This should correctly handle the SIGTERM signal and terminate the status_command. Fix #386
* / Fix default swaybar fontLibravatar Drew DeVault2015-12-21
|/
* Merge pull request #381 from sce/fix_gapsLibravatar Drew DeVault2015-12-20
|\ | | | | Fix gaps
| * 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 #380 from mikkeloscar/bar-font-supportLibravatar Drew DeVault2015-12-20
|\ | | | | swaybar: Add font support
| * swaybar: Add font supportLibravatar Mikkel Oscar Lyderik2015-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 #378 from mikkeloscar/bar-pixel-perfectLibravatar Drew DeVault2015-12-20
|\ \ | | | | | | swaybar: pixel perfect layout
| * | swaybar: pixel perfect layoutLibravatar Mikkel Oscar Lyderik2015-12-20
| | | | | | | | | | | | | | | This should make the bar workspace button layout identical to the layout used in i3.
* | | Merge pull request #377 from progandy/optional-pixbufLibravatar Drew DeVault2015-12-20
|\ \ \ | |/ / |/| | make gdk-pixbuf dependency really optional
| * | make gdk-pixbuf dependency really optionalLibravatar progandy2015-12-20
|/ /
* | Update README screenshotLibravatar Drew DeVault2015-12-20
| | | | | | | | The new one has the top cut off, I didn't notice.
* | Merge pull request #369 from crondog/masterLibravatar Drew DeVault2015-12-20
|\ \ | | | | | | swaybar: use height from config
| * | swaybar: use height from configLibravatar crondog2015-12-20
| |/
* | 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
| |/
* | Merge pull request #370 from sce/fix_free_barLibravatar Drew DeVault2015-12-20
|\ \ | | | | | | config: free_bar: Check if outputs is NULL.
| * | 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).
* / Make some dependencies optionalLibravatar Drew DeVault2015-12-20
|/ | | | Closes #368
* Merge pull request #366 from mikkeloscar/fix-swaybar-high-cpuLibravatar Drew DeVault2015-12-19
|\ | | | | swaybar: use select instead of busyloop
| * swaybar: use select instead of busyloopLibravatar Mikkel Oscar Lyderik2015-12-19
|/ | | | | | | | | Use of busyloop caused high cpu usage for sway because swaybar had to be redrawn all the time. By using select instead the bar only has to be redrawn when the status_command changes (i.e. every second) or when the workspaces are updated. Fix #345
* Merge pull request #364 from cyberhuman/masterLibravatar Drew DeVault2015-12-19
|\ | | | | Update readme dependency list and build instructions
| * Update readme dependency listLibravatar Raman Varabets2015-12-19
|/
* Merge pull request #362 from crondog/masterLibravatar Drew DeVault2015-12-18
|\ | | | | swaybar: use position from config
| * swaybar: use position from configLibravatar crondog2015-12-19
|/