aboutsummaryrefslogtreecommitdiff
path: root/swaylock/main.c
AgeCommit message (Collapse)AuthorLines
2017-12-17Adaptions for API change in json-c v0.130.15.1Björn Esser-2/+2
Lift restriction on json-c <= 0.12.1 ipc-server: Acquire ownership of referenced json_object properly When adding a referenced json_object with an unknown lifetime to another json_object, it must be done with a wrapped call to json_object_get() to acquire the ownership of that json_object.
2017-12-17Revert "Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15"Drew DeVault-2/+2
This reverts commit 1c4a086e7556475139960a25cb642f115d057c23, reversing changes made to 1263ea6497c732bfa1835eea4a8ffe2e6ea6e377.
2017-12-17Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15Drew DeVault-2/+2
2017-12-16Merge pull request #1519 from ggreer/clear-password-buffer-0.15Drew DeVault-30/+25
Swaylock: Clear password buffer after use.
2017-12-14Swaylock: Clear password buffer after use.Geoff Greer-30/+25
After a user enters or clears a password, try to overwrite the buffer containing it. That way it's not sitting around in RAM for something else to read later. Also, mlock() the password buffer so that it is never swapped out. This also replaces the dynamically allocated buffer with a static char[1024]. Any characters past that are discarded until the user hits enter or escape.
2017-12-14Adaptions for API change in json-c v0.13Björn Esser-2/+2
2017-12-13Fix `swaylock -f`Calvin Lee-25/+29
This commit makes swaylock poll the registry the first time in its fork in order for sway to recognize it and grant it lock privileges
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
2016-01-25extract cairo_set_source_u32()Christoph Gysin-8/+0
2016-01-25swaylock: support --colorChristoph Gysin-18/+46
2016-01-25swaylock: extract render_imageChristoph Gysin-85/+92
2016-01-25swaylock: don't memset memory that has been freedChristoph Gysin-5/+4
swaylock is randomly crashing because we write to password that has already been freed in pam_authenticate().
2016-01-25swaylock: fix pam conversationChristoph Gysin-5/+15
2016-01-25swaylock: add pam conversation debug outputChristoph Gysin-0/+14
2016-01-25swaylock: remove global variable pam_replyChristoph Gysin-4/+5
2016-01-23swaylock: add i3lock compatible optionsChristoph Gysin-6/+27