summaryrefslogtreecommitdiff
path: root/i3lock.c
AgeCommit message (Collapse)Author
2012-01-03Properly free the reply of xcb_get_geometryMichael Stapelberg
2012-01-03Refactor the unlock indicator into its own source code fileMichael Stapelberg
2012-01-03Fork after the window is visible, not beforeMichael Stapelberg
2012-01-03change ALL the copyrights!Michael Stapelberg
2012-01-03Lock the password buffer in memory, clear it in RAM after verifyingMichael Stapelberg
2011-12-30support ISO_Level5_Shift (Thanks roland)Michael Stapelberg
2011-12-29Fix the timeouts for hiding the unlock indicator (Thanks Merovius)Michael Stapelberg
2011-12-28Properly free X11 resources (fixes DoS bug) (Thanks Merovius)Michael Stapelberg
2011-12-28Implement a visual unlock indicatorMichael Stapelberg
2011-11-06Properly implement -h (fixes error message about unknown option)Michael Stapelberg
2011-11-06Get rid of superfluous \n in --versionMichael Stapelberg
2011-10-30Bugfix: Properly detect the release of ISO_Level3_Shift (Thanks bacardi55)Michael Stapelberg
2011-10-29Introduce --debug and some debugging options related to the Mode_switch / ↵Michael Stapelberg
ISO_Level3_Shift thing
2011-10-29Correctly handle Mode_switch/ISO_Level3_Shift (Thanks bacardi55)Michael Stapelberg
I tested this with the following experiment: $ setxkbmap 'us(intl)' $ xmodmap ~/configfiles/midna/Xmodmap $ xmodmap -e 'keycode 38 = a A adiaeresis Adiaeresis o O' $ xmodmap -e 'keycode 49 = ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift' Then, Mode_switch + a yields ä, but ` + a yields o. In i3lock, these were swapped (Mode_switch + a yielded o, while ä was not reachable at all). The comment in the code explains it (See http://code.stapelberg.de/git/configfiles for the Xmodmap)
2011-10-24Bugfix: Don’t re-grab pointer/keyboard on MappingNotify (Thanks wilmer)Michael Stapelberg
This fixes bug http://bugs.i3wm.org/545, where characters (of your password) would rarely slip through when entering your password (especially) after resuming your notebook from suspend to RAM. The reason is that when resuming, X triggers one or more MappingNotify events. At the same time, CPU load is high. This leads to a race-condition between the ungrab and re-grab in which i3lock temporarily does not grab the keyboard. One way to fix this is using xcb_grab_server() before and xcb_ungrab_server() after the ungrab/re-grab. However, I think we actually don’t need to ungrab/re-grab at all. I seem to have put that code in here by mistake – in i3, we re-grab after MappingNotify, but there we only grab specific keys. In i3lock, we grab the whole pointer/keyboard, so there should be no need. If I’m incorrect and this breaks some subtle use-cases for people with strange layout setup, at least we can properly document on why we need it, after we put it back in ;).
2011-09-25Throw an error when specifying an invalid pointer argument (-p) (Thanks ↵Michael Stapelberg
TrickSTer)
2011-08-24Fixed handle_screen_resize to build with NOLIBCAIRO enabledThorsten Töpper
2011-08-17handle screen resolution images and redraw the lock windowStefan Breunig
2011-04-02optimization: render to pixmap which is used as background for the windowMichael Stapelberg
Before this commit, the background color (white by default) was visible for about 100ms until the image was drawn. This flickering is now eliminated. Also, we don’t need to handle Expose-events anymore, as X11 will use the window’s background pixmap automatically.
2011-04-02Mark handle_visibility_notify and handle_mapping_notify as staticMichael Stapelberg
2011-03-13cleanup indention left-oversMichael Stapelberg
2011-03-13bump copyrightMichael Stapelberg
2011-03-13Handle MappingNotify-events (Thanks Pascal)Michael Stapelberg
2011-01-15Bugfix: correctly check for errors when connecting to X11Michael Stapelberg
2010-11-09add XK_KP_Enter as synonym for XK_ReturnMichael Stapelberg
2010-11-08Bugfix: Handle numpad keys correctly (Thanks Pascal)Michael Stapelberg
2010-11-06Bugfix: When entering 512 characters, you could use neither return nor ↵Michael Stapelberg
backspace (Thanks carl)
2010-10-06Add a hint to the error message 'unknown option' when compiled with NOLIBCAIROMichael Stapelberg
2010-10-06Make it possible to build i3lock without cairo.Thorsten Töpper
2010-09-09comment out debug output (Thanks Ciprian)Michael Stapelberg
2010-07-23print version number when invoked with -vMichael Stapelberg
2010-07-20Re-implement tiling of image (-t)Michael Stapelberg
2010-07-20Fix compilation warning by including cairo-xcbMichael Stapelberg
2010-07-20Port the pointer-code to xcbAxel Wagner
2010-07-20disable debug output which reveals the passwordMichael Stapelberg
(full debug output will be disabled for the next release)
2010-07-20Raise the i3lock window upon visibility notifiesMichael Stapelberg
2010-07-20make event loop simpler (Thanks to Jamey Sharp)Michael Stapelberg
As explained in Jamey’s post on the XCB mailing list, the event loop can/should be written in a more simple way than it was before in xcb-event. See: <AANLkTinhIM320wUjSeHkBTVk4ysBuiSZkvfs8pMLVykO@mail.gmail.com> or http://lists.freedesktop.org/archives/xcb/2010-July/006292.html
2010-07-17err, xcb_image is not actually usedMichael Stapelberg
2010-07-16s/arry/arrayMichael Stapelberg
2010-07-16Initial commit of the XCB rewrite of i3lockMichael Stapelberg
Changes: - Uses XCB instead of Xlib (like i3), thus cleaner/faster code - Uses cairo to load PNG images (*much* faster than XPM)
2010-07-09Implement showing the default X- or a hardcoded Windows-Mousecursor.Axel Wagner
2009-12-10Skip keypresses without entering a password, they cause a delayMichael Stapelberg
When suspending your system to RAM, a race-condition can occur which causes many enter keypresses to be sent. These effectively delay your login by 3 seconds times 50 times (or so), so we just skip empty passwords. If your password is empty, you don’t need to lock your screen anyway.
2009-08-02Some small cleanupsMichael Stapelberg
2009-08-02adding option to enable tiling of imagesJan-Erik Rediger
2009-08-02Skip leading # signs for the color, fix input validationMichael Stapelberg
2009-08-02adding option to choose background colorJan-Erik Rediger
2009-06-27Handle error codes when loading the pixmapMichael Stapelberg
2009-06-27i3lock now can use xpm images as backgroundJan-Erik Rediger
2009-05-10Implement options for forking, beeping and DPMS. Bump version to 1.0.Michael Stapelberg
2009-05-10Implement PAM support (and retab! the file)Michael Stapelberg