SegFault42
7a80375e1f
return value corrected
7 years ago
Emeric Planet
b34ae89d30
Check PNG file compliance ( #171 )
7 years ago
Michael Stapelberg
6b53758e14
display error when backspace is pressed without any input ( #172 )
This adds some feedback to a keypress which previously had no visible effect.
While the text “no input” isn’t the most descriptive, it was the only one I
could think of which fit into the unlock indicator circle. If you have a better
suggestion, let me know.
fixes #164
7 years ago
Michael Stapelberg
ef4f9e4057
Switch to autotools ( #163 )
This was largely copied from the i3 configure.ac and Makefile.am.
7 years ago
Michael Stapelberg
a514472ec4
Rename xinerama.[ch] to randr.[ch]
7 years ago
Michael Stapelberg
c311d1c5a3
Use RandR for learning about attached monitors
The code now tries the following options, in order:
• obtain monitors via RandR 1.5
• obtain outputs via RandR ≤ 1.4
• obtain screens via Xinerama
fixes #159
related to #101
related to #148
related to #149
7 years ago
Michael Stapelberg
5b4d45a8af
SetInputFocus to the i3lock window to force-close context menus ( #155 )
When grabbing the pointer/keyboard fails, a new code path is activated, which:
1. Uses the standards-compliant _NET_ACTIVE_WINDOW root window property to
determine the window to restore focus to.
2. Sets the input focus to the i3lock window, thereby possibly force-closing
open context menus (works with e.g. Google Chrome, does not work with
e.g. thunar, gedit).
3. Upon exiting, restores focus to the window from step ① by sending a
_NET_ACTIVE_WINDOW ClientMessage to the root window. Note that this step
requires https://github.com/i3/i3/pull/3027 in i3 to not mess up focus.
fixes https://github.com/i3/i3lock/issues/35
7 years ago
Orestis
8eecef62fb
Immediately hide the unlock indicator after ESC / C-u ( #145 )
7 years ago
Ran Benita
76d9960dbe
Change the locale discovery procedure to treat empty string same as unset
This is explained in the commit message here:
f468f0b243
7 years ago
jakob
cddb87420b
Fix overwrite of getopt optind
Using 'optind' in getopt_long() shadows actual 'optind' being provided
by getopt, thus prevents any future options change from using optind.
See https://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html#index-getopt_005flong
7 years ago
Jasper Lievisse Adriaanse
ea65a5292d
Restore intended behaviour and don't use mlock(2) on OpenBSD.
8 years ago
Jasper Lievisse Adriaanse
68fc2e8b5f
Use bsd_auth(3) instead of PAM on OpenBSD
Also apply two security measures for OpenBSD:
- use explicit_bzero(3)
- mlock(2) works for non-root users too
8 years ago
Jasper Lievisse Adriaanse
15973d1f52
Move all PAM code behind UES_PAM and enable that by default.
8 years ago
Jasper Lievisse Adriaanse
c1de117825
Rename all PAM-independant variables/comments.
there is nothing PAM-specific about pam_state or pam_state_t. therefore
rename them to be authenticator independant.
8 years ago
Nicolò Balzarotti
7504e16527
Add Enter on C-m ( #103 )
8 years ago
eplanet
1c97a84847
Displaying locking message when grabbing the pointer/keyboard. ( #88 )
Display "locking…" message when grabbing the pointer/keyboard,
after at least 250 ms of unfruitful attempts. If grabbing
eventually fails, application will not fork and return 1.
8 years ago
Diogo Ferreira
fd2215b0f0
i3lock: Stop leaking the image_path dup. ( #93 )
8 years ago
koebi
17b7b77893
unlock automatically after authentication failure ( #90 )
This will make i3 unlock automatically after authentication failure and
correct input without pressing <Enter> again after the "wrong"-indicator
is gone.
8 years ago
Florian Zipperle
cca7d4e6c3
Removed obsolete inactivity timeout ( #84 )
* Removed obsolete inactivity timeout
8 years ago
Michael Stapelberg
ce1c5cecc0
clang-format-3.5
Not sure why travis didn’t warn about this on the PR. The only reference
to the PR I can find is https://travis-ci.org/i3/i3lock/builds/130470377
9 years ago
Christoph Ruegge
463d38fed6
Add support for `xss-lock --transfer-sleep-lock' ( #75 )
Add support for `xss-lock --transfer-sleep-lock'
9 years ago
Karl Tarbe
9a7604bb35
Allow CTRL+J as enter and CTRL+H as backspace ( #72 )
fixes #71
9 years ago
Michael Stapelberg
59705b05b5
Show unlock indicator if password was entered during PAM verification
fixes #51
9 years ago
Michael Stapelberg
0bdc0c644d
Eat XKB_KEY_Delete and XKB_KEY_KP_Delete (Thanks bebehei)
fixes #50
9 years ago
Michael Stapelberg
cc73d88aea
Remove libxkbfile dependency from README.md/comments
It has not been in use since commit 7eb43aeabd
9 years ago
Michael Stapelberg
688d49d5b8
fix pam_securetty: set PAM_TTY to getenv("DISPLAY")
fixes #43
9 years ago
Michael Stapelberg
929e541fb7
Remove DPMS support in favor of a wrapper script and xset(1).
fixes #32
9 years ago
Kenneth Lyons
d91c20a9f2
Indicate that the --inactivity-timeout option takes an argument.
10 years ago
Ingo Bürk
b4c97bddf7
Only redraw the screen if the unlock indicator is actually used.
fixes #12
10 years ago
Deiz
dda29f93a1
Update copyright notices and get rid of ranges
The script used to make these changes can be found at:
https://gist.github.com/Deiz/32322020f76d23e2bf8f
10 years ago
Deiz
b4f6dae10e
List generic pressed modifiers on failure
10 years ago
Alexandre Boeglin
a9ecf1e0c9
Add capslock and numlock indicators
When the unlock indicator warns the user that a password was typed
wrong, it now also reports the state of the capslock and numlock
modifiers.
Signed-off-by: Alexandre Boeglin <alex@boeglin.org>
10 years ago
James Cassidy
aaad9c0e7a
refresh pam credentials on successful authentication
10 years ago
Michael Stapelberg
68b78a7f57
clang-format -i **/*.[ch]
From here on, we’ll use clang-format to automatically format the source.
This has worked well in i3, so we are introducing it for i3lock.
10 years ago
Daniel Otero
86323f6e04
Update the key symbol if the composing ends.
10 years ago
Daniel Otero
9e48c74be1
Avoid handle a keysym if the compose state gets cancelled
This is the approach taken by libX11, and feels more consistent.
10 years ago
Daniel Otero
562e824246
Remove xkb_context initialization code from load_compose_table
xkb_context is guaranteed to be initializated from load_keymap.
10 years ago
Daniel Otero
ef3ef30400
Add support for Compose and dead-keys with libxkbcommon
10 years ago
Martin Stiborsky
665ce3e215
getpwuid call moved
10 years ago
Martin Stiborsky
6ffe86ca12
null check for getpwuid and pw_name
10 years ago
Martin Stiborsky
7d52029ae3
removed the whoami function, replaced with an inline getpwuid call
10 years ago
Martin Stiborsky
a3839aa69f
getting current user with whoami like function rather than from env variable
10 years ago
Neodyblue
8a630bec65
Ignore password validation is pam is in wrong state
This add a protection against wrong password spamming
10 years ago
koebi
0cbf483cb4
implemented logging the number of failed attempts
This closes #1243
10 years ago
Michael Stapelberg
7f450a52f6
Die when the X11 connection breaks during runtime (Thanks Eduan)
10 years ago
Michael Stapelberg
4724d4abf0
remove obsolete xkb_state_update_key() calls (Thanks Ran)
11 years ago
Michael Stapelberg
1b89709ae7
listen for XKB events instead of the MappingNotify event (Thanks Ran)
11 years ago
Michael Stapelberg
7eb43aeabd
little cleanups thanks to Ran Benita’s review
11 years ago
Michael Stapelberg
0beb9a47b1
use libxkbcommon-x11 instead of libX11
11 years ago
Vytautas Šaltenis
e2dd1543e9
Cleanup scattered timer calls to use macros
11 years ago