sway/include
robotanarchy c3e9ee5e43 replace non-standard qsort_r with qsort
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-22 00:38:18 +01:00
..
client make gdk-pixbuf dependency really optional 2015-12-20 17:37:52 +01:00
commands.h Add framework for switching command sets 2015-11-29 17:20:27 -05:00
config.h replace non-standard qsort_r with qsort 2015-12-22 00:38:18 +01:00
container.h Reload swaybar/swaybg on config reload. 2015-12-18 18:27:44 +01:00
criteria.h criteria: Add. Learn for_window command. 2015-11-25 14:34:33 +01:00
extensions.h extensions: Track panels by wl_resource, position per panel. 2015-12-20 12:54:34 +01:00
focus.h seamless_mouse: Move pointer only if successfully changed workspace. 2015-10-23 16:35:48 +02:00
handlers.h container: Move container_under_pointer here from handlers. 2015-10-29 16:37:19 +01:00
input_state.h input_state: Remove mouse_origin (x&y). Query wlc instead. 2015-10-29 18:02:02 +01:00
ipc-client.h Subscribe to workspace change events and redraw 2015-12-13 16:04:54 -05:00
ipc-server.h Rearrange logging headers 2015-11-28 08:49:02 -05:00
ipc.h Move IPC client into common, refactor IPC 2015-11-27 09:50:04 -05:00
layout.h sway: insert numbered workspaces in order 2015-12-18 01:22:07 +01:00
list.h replace non-standard qsort_r with qsort 2015-12-22 00:38:18 +01:00
log.h Rearrange logging headers 2015-11-28 08:49:02 -05:00
output.h output: Support multiple adjacent outputs. 2015-11-16 21:32:18 +01:00
readline.h Move headers to include/ 2015-08-16 11:02:56 -04:00
resize.h dont swap view with workspace... 2015-08-22 21:54:39 -07:00
stringop.h stringop: lenient_strcmp: Add. 2015-11-21 22:22:09 +01:00
sway.h added missing header file 2015-08-20 15:27:59 +02:00
util.h Move numlen(1) to sway/util.c 2015-12-14 17:07:52 +01:00
workspace.h sway: enable workspace selection by number 2015-12-18 01:21:31 +01:00