| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
works on arch (glibc) and void linux (tested with musl libc) now
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|\
| |
| | |
Fix gaps
|
| |
| |
| |
| |
| | |
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.
|
|/ |
|
|\
| |
| | |
swaybar: Add font support
|
|/ |
|
|\
| |
| | |
Per panel config
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Change the name to something less ambigious.
|
|\ \
| | |
| | | |
swaybar: pixel perfect layout
|
| | |
| | |
| | |
| | |
| | | |
This should make the bar workspace button layout identical to the layout
used in i3.
|
|\ \ \
| |/ /
|/| | |
make gdk-pixbuf dependency really optional
|
|/ / |
|
| |
| |
| |
| | |
The new one has the top cut off, I didn't notice.
|
|\ \
| | |
| | | |
swaybar: use height from config
|
| |/ |
|
|\ \
| | |
| | | |
config: load_swaybars: Fix name comparison.
|
| |/ |
|
|\ \
| | |
| | | |
config: free_bar: Check if outputs is NULL.
|
| |/
| |
| |
| |
| | |
bar_config.outputs is NULL if no output is explicitly defined in config
(ie. use for for all outputs).
|
|/
|
|
| |
Closes #368
|
|\
| |
| | |
swaybar: use select instead of busyloop
|
|/
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
Update readme dependency list and build instructions
|
|/ |
|
|\
| |
| | |
swaybar: use position from config
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
| |
This makes swaylock more or less work.
|
| |
|
|\
| |
| | |
Add support for running swaybar_command
|
| | |
|
|/
|
|
| |
This fixes the issue where workspace 10 ends up being the default.
|
|\
| |
| | |
Fix arrange windows
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add bar option: swaybar_command <command>
|
| |/ |
|
|\ \
| |/
|/| |
Reload swaybar/swaybg on config reload.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This works by tracking the pids of the child processes in the related
output container and terminating the processes and spawning new ones on
a config reload.
Should solve: #347
|
|\|
| |
| | |
swaybar: ipc_update_ws: Fix memory corruption.
|
|/
|
|
|
| |
json_object_object_get_ex does not require json_object_put according to
docs, this should fix the random crashes.
|