Commit Graph

345 Commits (main)

Author SHA1 Message Date
Michael Stapelberg 712fed5cf2 update changelog for 2.5 2013-06-09 11:41:33 +02:00
Axel Wagner e69b98561b Set window name 2013-04-11 22:54:48 +02:00
Sebastian Ullrich e0213cb1f5 Fix centering the indicator in the no-xinerama case 2013-03-29 10:14:01 +01:00
Michael Stapelberg d4d589a7dd fix ctrl-u handling 2013-03-29 10:13:01 +01:00
Sebastian Ullrich 1495903e5d Fix resetting the password after failed authentications
This has been broken by commit 661344.
2013-03-29 10:02:35 +01:00
Philip Dexter 661344463a Add ctrl+u password reset 2013-03-24 14:30:07 +01:00
Baptiste Daroussin d8a1da69fb Use ev_loop_fork after fork, this fix forking on kqueue based OSes 2013-03-20 21:28:14 +01:00
Michael Stapelberg 006f9d3d7d README: refer to cr.i3wm.org for patches 2013-02-10 15:18:54 +01:00
Quentin Glidic b1a6e2ebe3 Limit the debug print to the actual password size
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2013-02-07 17:15:16 +01:00
Vivien Didelot 2c9e46dfee RGB color notation is 3-byte hexadecimal
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
2012-12-06 09:40:23 +01:00
Moritz Augsburger d6b9e33e28 Allow passwordless PAM conversations (e.g. fingerprint) 2012-11-04 19:01:52 +01:00
Moritz Augsburger e84a1203a6 Allow XKB_KEY_XF86ScreenSaver as synonm for enter
This keysym is generated on convertible tablets by pressing a hardware
lock/unlock button.
2012-11-04 19:01:48 +01:00
Michael Stapelberg fba88476dd remove support for NOLIBCAIRO, cairo-xcb is widespread by now 2012-10-26 20:42:26 +02:00
Michael Stapelberg fe4f4a8674 README: remove unhelpful comment about pkg-config 2012-10-26 20:40:20 +02:00
Michael Stapelberg e1d86a3279 use libxkbcommon for input handling
Thanks to Ran Benita and Daniel Stone (the libxkbcommon authors) for
answering my questions and reviewing this code.

With this commit, input handling should be more correct with using less
code (in i3lock, that is).
2012-10-26 20:39:59 +02:00
Michael Stapelberg 1d08065fe0 bugfix: free(reply) to avoid memory leak 2012-10-26 20:21:53 +02:00
Michael Stapelberg 2cadf22c67 s/pam_message/pam_response/ (Thanks Tucos)
The previous code didn’t cause any issues since both types (currently!)
have the same size.
2012-10-15 22:40:29 +02:00
Michael Stapelberg 603c90e985 promote the "could not load image" message from debug to normal 2012-09-26 11:21:48 +02:00
Michael Stapelberg 1e55f0dc6f only use mlock() on Linux, FreeBSD (for example) requires root 2012-08-22 20:49:10 +02:00
Fernando Tarlá Cardoso Lemos 65795be0a9 getopt_long returns int, don't cast to char.
On ARM, casting -1 to char turns it into something else. Fixes
argument parsing on ARM. Thanks Chipaca for reporting.
2012-06-29 16:30:23 +02:00
Michael Stapelberg fdf6d7af2a update changelog for 2.4.1 2012-06-02 14:45:12 +02:00
Michael Stapelberg 1da637c419 skip shift when getting the modifier mask (Thanks SardemFF7) 2012-05-30 16:53:16 +02:00
Michael Stapelberg dd02dff44a revert shift lock handling (broke uppercase letters)
With some layouts, this broke uppercase letters in your passwords.

I think that explicit shiftlock handling is unnecessary. X11 seems to do
it on its own. Here is what leads me to that conclusion:

  $ setxkbmap de
  $ xmodmap -e 'keycode 66 = Shift_Lock'
  $ xev

Now enter a character, say "a", then press CapsLk (which is now
Shift_Lock), then press "a" again. The event state is 0x1, thereby
undistinguishable from normal shift.
2012-05-30 16:08:12 +02:00
Michael Stapelberg 9b29ae7afd Bugfix: Correctly center unlock indicator after reconfiguring screens (Thanks xn)
Fixes: #712
2012-05-19 21:13:03 +02:00
Michael Stapelberg f9416f6bc6 remove debian/
The Debian packaging is now hosted on Debian servers at
git://git.debian.org/users/stapelberg/i3lock.git

This makes life easier for Debian people. It makes life harder
for you if you want to build a Debian package of the current
git version. Here is how you could do that now:

Build a tarball of the current git version:
mkdir ../i3lock-dpkg
VERSION=i3lock-$(git describe --tags)
git archive --prefix=$VERSION/ --output=../i3lock-dpkg/$VERSION.tar.bz2 HEAD

get the packaging:
cd ../i3lock-dpkg
gbp-clone git://git.debian.org/users/stapelberg/i3lock.git
cd i3lock
git-import-orig ../$VERSION.tar.bz2
dpkg-buildpackage
2012-04-08 00:23:46 +02:00
Michael Stapelberg 544f535bbf add .gitignore 2012-04-07 19:41:50 +02:00
Michael Stapelberg 79398d9102 add CHANGELOG file 2012-04-01 13:14:25 +02:00
Michael Stapelberg dc2b6e5f39 Use (void) instead of () for functions without args (Thanks fernandotcl)
See also:
http://article.gmane.org/gmane.linux.kernel/1268792

The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors, such
as the one which was fixed with commit 0ea64ae4.
2012-04-01 12:28:28 +02:00
Michael Stapelberg 3c2436cb71 Bugfix: fallback when the image cannot be loaded
If the specified file does not exist or is invalid, previously, the unlock
indicator wouldn’t show up at all, because the invalid surface was still used.

With this commit, i3lock will react like if you didn’t specify an image at all.
2012-03-28 21:00:49 +02:00
Michael Stapelberg be21951062 Only output text when in debug mode (fixes problems with xautolock) 2012-03-26 19:54:47 +02:00
Michael Stapelberg 2053e9880a Bugfix: Fix background color when using cairo (Thanks Pascal) 2012-03-26 18:59:41 +02:00
Michael Stapelberg 9eae4e992a debian: update changelog for 2.3.1 2012-03-15 17:02:00 +01:00
Michael Stapelberg 324149ea77 fix compilation on some systems (Thanks badboy) 2012-03-15 13:50:51 +01:00
Michael Stapelberg c9fe076f95 debian: fix packaging format to 1.0 for now 2012-03-15 13:34:35 +01:00
Michael Stapelberg 1b2f5f0f3c debian: remove duplicate priority field 2012-03-15 13:33:54 +01:00
Michael Stapelberg 5045dab79c manpage: add -u flag in synopsis 2012-03-15 13:32:56 +01:00
Michael Stapelberg 8f353487d4 manpage: hyphen 2012-03-15 13:32:34 +01:00
Michael Stapelberg e5f7857bb1 debian: update packaging 2012-03-15 13:28:07 +01:00
Michael Stapelberg f8b8b54aef README: also add libev to dependencies 2012-03-15 12:47:40 +01:00
Michael Stapelberg d879637016 document the dependency on libxcb-xinerama 2012-03-15 12:35:39 +01:00
Michael Stapelberg b5bbd2fe04 Properly handle Caps Lock (Thanks Damien) 2012-03-10 16:42:10 +01:00
Maik Fischer 6cb93c9bd8 man page: mention xautolock 2012-02-23 17:05:47 +01:00
Michael Stapelberg 406fa5e2c4 Bugfix: Copy the color depth from parent (root) window instead of hardcoding to 24 (Thanks hafron) 2012-01-15 16:15:05 +00:00
Simon Kämpe f368bbd006 Added missing #ifndef NOLIBCAIRO
Needed to compile without libcairo.
2012-01-07 11:47:20 +00:00
Michael Stapelberg 34c8108c06 Bugfix: Check for waiting X11 events before entering the event loop 2012-01-05 22:27:01 +00:00
Michael Stapelberg cab5e6b1de Change the unlock indicator properly after pressing the 'escape' key 2012-01-05 01:07:29 +00:00
Michael Stapelberg 0a09aeec6f debian: add libxcb-xinerama0-dev as build-dependency 2012-01-04 00:12:57 +00:00
Michael Stapelberg 5e14ad0605 draw the unlock indicator in the middle of every screen 2012-01-04 00:10:36 +00:00
Michael Stapelberg fd64bde0cb Implement Xinerama support (not used yet) 2012-01-03 23:10:56 +00:00
Michael Stapelberg 02655d2ddf Fix a few memory leaks 2012-01-03 22:31:16 +00:00