Added --window-image option to swaylock

This allows setting window specific images.

Also Changed:
  - The colored background is _always_ drawn, to prevent non-fullscreen
    images from leaking information.
  - Added function list_arbitrary_insert, which allows insertion to a
    list at an arbitrary location less than the capacity. It silently
    fails otherwise.
This commit is contained in:
Nuew 2016-03-22 01:20:11 -04:00
parent 4ce1ab8a26
commit 1ca5453678
3 changed files with 108 additions and 33 deletions

View file

@ -12,6 +12,7 @@ void list_free(list_t *list);
void list_foreach(list_t *list, void (*callback)(void* item));
void list_add(list_t *list, void *item);
void list_insert(list_t *list, int index, void *item);
void list_arbitrary_insert(list_t *list, int index, void *item);
void list_del(list_t *list, int index);
void list_cat(list_t *list, list_t *source);
// See qsort. Remember to use *_qsort functions as compare functions,