Michael Stapelberg
1d08065fe0
bugfix: free(reply) to avoid memory leak
12 years ago
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.
12 years ago
Michael Stapelberg
603c90e985
promote the "could not load image" message from debug to normal
12 years ago
Michael Stapelberg
1e55f0dc6f
only use mlock() on Linux, FreeBSD (for example) requires root
12 years ago
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.
13 years ago
Michael Stapelberg
fdf6d7af2a
update changelog for 2.4.1
13 years ago
Michael Stapelberg
1da637c419
skip shift when getting the modifier mask (Thanks SardemFF7)
13 years ago
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.
13 years ago
Michael Stapelberg
9b29ae7afd
Bugfix: Correctly center unlock indicator after reconfiguring screens (Thanks xn)
Fixes : #712
13 years ago
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
13 years ago
Michael Stapelberg
544f535bbf
add .gitignore
13 years ago
Michael Stapelberg
79398d9102
add CHANGELOG file
13 years ago
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.
13 years ago
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.
13 years ago
Michael Stapelberg
be21951062
Only output text when in debug mode (fixes problems with xautolock)
13 years ago
Michael Stapelberg
2053e9880a
Bugfix: Fix background color when using cairo (Thanks Pascal)
13 years ago
Michael Stapelberg
9eae4e992a
debian: update changelog for 2.3.1
13 years ago
Michael Stapelberg
324149ea77
fix compilation on some systems (Thanks badboy)
13 years ago
Michael Stapelberg
c9fe076f95
debian: fix packaging format to 1.0 for now
13 years ago
Michael Stapelberg
1b2f5f0f3c
debian: remove duplicate priority field
13 years ago
Michael Stapelberg
5045dab79c
manpage: add -u flag in synopsis
13 years ago
Michael Stapelberg
8f353487d4
manpage: hyphen
13 years ago
Michael Stapelberg
e5f7857bb1
debian: update packaging
13 years ago
Michael Stapelberg
f8b8b54aef
README: also add libev to dependencies
13 years ago
Michael Stapelberg
d879637016
document the dependency on libxcb-xinerama
13 years ago
Michael Stapelberg
b5bbd2fe04
Properly handle Caps Lock (Thanks Damien)
13 years ago
Maik Fischer
6cb93c9bd8
man page: mention xautolock
13 years ago
Michael Stapelberg
406fa5e2c4
Bugfix: Copy the color depth from parent (root) window instead of hardcoding to 24 (Thanks hafron)
13 years ago
Simon Kämpe
f368bbd006
Added missing #ifndef NOLIBCAIRO
Needed to compile without libcairo.
13 years ago
Michael Stapelberg
34c8108c06
Bugfix: Check for waiting X11 events before entering the event loop
13 years ago
Michael Stapelberg
cab5e6b1de
Change the unlock indicator properly after pressing the 'escape' key
13 years ago
Michael Stapelberg
0a09aeec6f
debian: add libxcb-xinerama0-dev as build-dependency
13 years ago
Michael Stapelberg
5e14ad0605
draw the unlock indicator in the middle of every screen
13 years ago
Michael Stapelberg
fd64bde0cb
Implement Xinerama support (not used yet)
13 years ago
Michael Stapelberg
02655d2ddf
Fix a few memory leaks
13 years ago
Michael Stapelberg
0e7e009f45
Properly free timeouts, move one of the timeouts to unlock_indicator.c
13 years ago
Michael Stapelberg
f94fb9b5f8
remove the dead variable modeswitchmask
13 years ago
Michael Stapelberg
6ea3fbdc21
Properly free the reply of xcb_get_geometry
13 years ago
Michael Stapelberg
57585bef70
Refactor the unlock indicator into its own source code file
13 years ago
Michael Stapelberg
009a0b1a51
Fork after the window is visible, not before
13 years ago
Michael Stapelberg
6f50a997b8
change ALL the copyrights!
13 years ago
Michael Stapelberg
52f96e78f2
Lock the password buffer in memory, clear it in RAM after verifying
13 years ago
Michael Stapelberg
2dd03ce7db
support ISO_Level5_Shift (Thanks roland)
13 years ago
Michael Stapelberg
7fdda76a51
Fix the timeouts for hiding the unlock indicator (Thanks Merovius)
13 years ago
Michael Stapelberg
1b757b2aa9
Properly free X11 resources (fixes DoS bug) (Thanks Merovius)
13 years ago
Michael Stapelberg
f216517bb0
Implement a visual unlock indicator
13 years ago
Michael Stapelberg
09e74c4fd1
debian: update packaging to use dpkg-buildflags, i3lock.manpages
13 years ago
Michael Stapelberg
47db98efd2
Makefile: add 'dist' target
13 years ago
Michael Stapelberg
8e3c506c90
Properly implement -h (fixes error message about unknown option)
13 years ago
Michael Stapelberg
409025c7cc
Get rid of superfluous \n in --version
13 years ago