aboutsummaryrefslogtreecommitdiff
path: root/swaylock/main.c
AgeCommit message (Collapse)AuthorLines
2018-05-20Swaylock: Use calloc instead of mallocRyan Dwyer-1/+1
2018-05-20Swaylock: Log error if multiple images are defined for the same outputRyan Dwyer-0/+17
2018-05-20Swaylock: Allow per-output imagesRyan Dwyer-20/+118
2018-04-12swaylock: Securely zero-out password.Geoff Greer-0/+13
- Replace char* with static array. Any chars > 1024 will be discarded. - mlock() password buffer so it can't be written to swap. - Clear password buffer after auth succeeds or fails. This is basically the same treatment I gave the 0.15 branch in https://github.com/swaywm/sway/pull/1519
2018-04-05Error handling in swaylock daemonize()Drew DeVault-1/+23
Fixes #1741
2018-04-04Address review feedback from @emersionDrew DeVault-3/+4
2018-04-04Add hidpi support to swaylockDrew DeVault-2/+33
2018-04-04Implement input-inhibit in sway, swaylockDrew DeVault-0/+10
2018-04-04Actually let's not do that TODODrew DeVault-8/+0
2018-04-04R E N D E R I N GDrew DeVault-3/+11
2018-04-04Add password buffer, refactor rendering/surfacesDrew DeVault-48/+31
2018-04-04Split seat code into its own fileDrew DeVault-243/+3
2018-04-04Set up an XKB context for the keyboardDrew DeVault-5/+99
2018-04-04Grab keyboard off of the seatDrew DeVault-3/+48
2018-04-04Initial swaylock portDrew DeVault-705/+247
2017-08-09Clean up fallthrough issuesDrew DeVault-57/+51
2017-07-31Allow swaylock indicator size to be configurableCalvin Lee-10/+17
2017-04-26Add -DVERSION flag for release version numbersSebastian Noack-5/+1
2017-03-10UnGNUify the codebaseDrew DeVault-2/+7
2017-02-21Documentation and style fixes for swaylockCalvin Lee-82/+55
2017-02-21Feature for #1078: Configurable swaylock colorsCalvin Lee-37/+174
Colors are configured through the command line so that swaylock conforms to the i3lock fork 'github.com/chrjguill/i3lock-color'. Differences from it are that one letter options '-r' and '-s' are not implimentend because '-s' is already used by '--scaling' in swaylock. This commit also fixed whitespace in 'include/swaylock/swaylock.h' and changed `parse_color` in 'common/util.h' so that it can accept colors that do not start with a hash. This was done to keep compatability with the i3lock fork.
2016-12-27fix #971Zandr Martin-2/+2
2016-12-20Clear swaylock properly during re-renderDrew DeVault-0/+5
Fixes #999
2016-10-05Explicitly set cairo font to avoid wonky fallbackVasilij Schneidermann-0/+1
See also https://github.com/i3/i3lock/pull/89
2016-09-05Add client support for HiDPIDrew DeVault-24/+29
This adds HiDPI support to swaybar, swaybg, and swaylock.
2016-09-01Reorganize includesDrew DeVault-2/+1
2016-07-15Fix warning from unused daemon return valueDrew DeVault-1/+4
2016-07-13swaylock: Add -f option to detach from the controlling terminal, fixes #725David Eklov-1/+7
2016-06-26Bug fix: Add missing header file, unistd.hDavid Eklov-0/+1
Without unistd.h the following functions getuid, alarm and close are implicitly declared causing compilation to fail due to -Werror=implicit-function-declaration
2016-06-04make numpad enter key work in swaylockZandr Martin-2/+3
see issue #647
2016-06-04add documentation for client commandsZandr Martin-1/+1
2016-05-26add --no-unlock-indicator to swaylockZandr Martin-2/+9
2016-05-26clear swaylock password buffer with escZandr Martin-2/+3
for i3lock compatibility
2016-05-26clear password buffer with ctrl-u in swaylockZandr Martin-0/+34
also prevent screen redraws on modifier key presses
2016-04-25swaylock: fix double freeKevin Hamacher-2/+1
2016-04-10swaylock: Handle possible fail on password reallocMikkel Oscar Lyderik-2/+15
2016-04-03Improve swaylock event flushingKevin Hamacher-8/+10
2016-03-31swaylock: improve graphical feedbackKevin Hamacher-1/+2
2016-03-27Squash warning about uninitialized variableDrew DeVault-1/+1
2016-03-25Add graphical feedback to swaylock (#526)Kevin Hamacher-74/+216
2016-03-24Replace with in swaylockNuew-6/+5
2016-03-24Change 'display' to 'output' in swaylock error messages where necessaryNuew-4/+4
2016-03-24Change 'display' to 'output' in swaylock docs where necessaryNuew-7/+7
2016-03-24Add choice of display to --image.Nuew-34/+121
Additionally - Made background colors display when an image is enabled if a --color is specified. - Link CJson to swaylock. - Add the --socket option to swaylock.
2016-03-24swaylock: Interpret XKB_KEY_BackSpace as a deletion instead of a normal key.Julius Michaelis-0/+8
2016-03-23swaylock: Fix crash when unable to connect to wlMikkel Oscar Lyderik-1/+7
Prevent swaylock from crashing when it can't connect to wayland for whatever reason. i.e. XDG_RUNTIME_DIR not set. Fix #534
2016-03-21swaylock: Grow the password bufferGökberk Yaltıraklı-2/+9
2016-02-26Correctly exit sway on errors.Mikkel Oscar Lyderik-2/+2
Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
2016-01-28swaylock: Allow for transparent color valuescrondog-11/+17
There is only a slight issue. When using a transparent color the views are arranged to make room for swaylock which we can now see. I tried removing the arrange call but that just made it worse by putting in an opaque view on the workspace and not making the lockoverlay color. Ill raise an issue if this is not easily solved
2016-01-26Remove pointer from swaylock surfaceDrew DeVault-0/+6