aboutsummaryrefslogtreecommitdiff
path: root/swayidle
AgeCommit message (Collapse)AuthorLines
2019-01-12Split swayidle from swayDrew DeVault-573/+0
2019-01-07swayidle: Fix sleep inhibitor not being acquiredOscar Cowdery Lack-0/+13
Fixes #3377. The sleep lock file descriptor was immediately closed after it was acquired due to the dbus message being freed. Now the fd is duplicated before the message is freed so the inhibitor stays active.
2018-12-09list.c: Remove list_foreachIan Fan-12/+7
Most occurrences have been replaced by `free_flat_list` which has been moved from stringop.c to list.c. The rest have been replaced by for loops.
2018-11-25swayidle: fix busy loop on writable FDemersion-3/+4
The wl_event_source_fd_update docs say: > File descriptors are usually writable to begin with, so they do not need to > be polled for writable until a write actually fails. When a write fails, > the event mask can be changed to poll for readable and writable, delivering > a dispatch callback when it is possible to write more. Once all data has > been written, the mask can be changed to poll only for readable to avoid > busy-looping on dispatch. So we should only poll for WL_EVENT_WRITABLE if a write fails. I'm not yet sure how to do this properly and Weston doesn't do it, so in the meantime I'll just fix the busy loop. I'll ask them too. Fixes https://github.com/swaywm/sway/issues/3190
2018-11-24swayidle: fix dbus_event not to blockemersion-11/+31
2018-11-24swayidle: listen when display becomes writableemersion-2/+6
2018-11-24swaylock: fix display_event to not blockIan Fan-4/+11
2018-11-24swayidle: when acquiring sleep lock, initialize and free variables properlyIan Fan-7/+8
2018-11-21fix typo in swayidle(1)camoz-1/+1
2018-11-18Use #if instead of #ifdefemersion-12/+20
2018-11-05Revert "Work around swayidle never triggering on SIGUSR1"Drew DeVault-3/+1
2018-11-05Work around swayidle never triggering on SIGUSR1Jarkko Oranen-1/+3
2018-10-28swayidle: enter idle state on SIGUSR1emersion-109/+119
2018-10-15Sway clients: Exit gracefully when compositor is unavailableRyan Dwyer-1/+3
2018-09-30Add support for installing binaries with DT_RPATHArkadiusz Hiler-0/+1
It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
2018-09-30Turn funcs() into funcs(void)Arkadiusz Hiler-2/+2
If they really do not take undefined number of arguments.
2018-07-30delete references to swaygrabEric Engestrom-1/+1
2018-07-16swayidle: cleanupemersion-9/+6
No idea why wlr_output_layout was involved here.
2018-07-09Update for swaywm/wlroots#1126emersion-39/+39
2018-06-17swayidle: fix stack overflow on sleepAlex Xu (Hello71)-1/+2
2018-06-08swayidle: doublefork to not leave zombies aroundDominique Martinet-5/+18
2018-05-16swayidle: terminate if wl_display_dispatch failedDominique Martinet-1/+4
2018-05-16swayidle: terminate when server diedDominique Martinet-0/+3
Fixes #1977.
2018-05-13Actually fix swayidleDrew DeVault-2/+2
I also didn't test this commit though so who knows
2018-05-13swayidle: use wl_event_loop_dispatch_idleDrew DeVault-2/+3
Fixes #1977
2018-05-13Add pixman to swayidle depsDrew DeVault-0/+1
2018-05-13Remove asciidoc file for swayidleMattias Eriksson-67/+0
2018-05-13Idle handling for dpms/lockscreen et alMattias Eriksson-0/+559
Swayidle handles idle events and allows for dpms and lockscreen handling. It also handles systemd sleep events, and can raise a lockscreen on sleep Fixes #541