Commit Graph

321 Commits (8a0156cec69e85bf0e8c21f1f589334ec7466684)

Author SHA1 Message Date
Michael Stapelberg 8a0156cec6 travis: switch to clang-format-9 (now also in Docker) 2020-07-05 09:37:52 +02:00
Michael Stapelberg eff3bf0c5e clang-format: disable header re-ordering 2020-07-05 09:37:52 +02:00
Ingo Bürk f00b87550f
Merge pull request #280 from stapelberg/allocs
avoid pixmap allocations in the redraw path
2020-07-05 09:36:45 +02:00
Michael Stapelberg cd7172d415
make --debug output go to stderr (#279) 2020-07-05 09:24:18 +02:00
Michael Stapelberg 467e46c077 avoid pixmap allocations in the redraw path
Before this change, i3lock could become unusable on systems where pixmap
allocations take long.

I don’t know precisely why, but slow pixmap allocations is a symptom that my
computer sometimes exhibits, apparently when low on GPU memory.

In that situation, duplicate key press events would be processed (apparently
received from X11!), making correct password entry impossible.
2020-07-05 09:23:39 +02:00
Orestis Floros f3b061233e
Merge pull request #259 from trofi/master
unlock_indicator.c: fix build failure against gcc-10
2020-01-25 14:42:07 +01:00
Jeroen Roovers 3daf34bb03 unlock_indicator.c: fix build failure against gcc-10
On gcc-10 (and gcc-9 -fno-common) build fails as:

```
  CCLD     i3lock
ld: i3lock-unlock_indicator.o:i3lock/unlock_indicator.c:38:
  multiple definition of `input_position'; i3lock-i3lock.o:i3lock/i3lock.c:69: first defined here
ld: i3lock-unlock_indicator.o:(.bss+0x102): multiple definition of `__odr_asan.input_position'; i3lock-i3lock.o:(.bss+0x92b): first defined here
```

gcc-10 will change the default from -fcommon to fno-common:
https://gcc.gnu.org/PR85678.

The error also happens if CFLAGS=-fno-common passed explicitly.

Reported-by: Hans de Graaff
Bug: https://bugs.gentoo.org/706286
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2020-01-25 12:42:34 +00:00
Michael Stapelberg 656fa39f82
fix: pam_end in cleanup in main, not in event loop (#257)
Thanks to joanbm for an incredible bug report.

fixes #254
2020-01-20 22:49:10 +01:00
Michael Stapelberg 1b9b2bd7f8
set _NET_WM_BYPASS_COMPOSITOR hint to avoid flickering (#256)
For compositors which support it (picom >v7.5, formerly known as compton), this
should result in the i3lock window no longer being composited, hence fixing
issue #204.

related to #204
2020-01-20 22:17:01 +01:00
Ingo Bürk b9d72cb1f0
Merge pull request #255 from tnptop/master
Add missing dependencies in Requirements section
2020-01-02 15:46:31 +01:00
Thanapat Bhunnahet f97a82c6a1
Add missing dependencies in Requirements section 2020-01-02 21:05:05 +07:00
Ingo Bürk f6e0218fa7
Merge pull request #247 from ivanhercaz/patch-1
Add a note about the image processing issues
2019-09-27 07:14:20 +02:00
ivanhercaz c41c0e11c5
Rewrite the note about image manipulation (#247)
According to the change requested by @Airblader.
2019-09-24 21:26:39 +01:00
Iván ced992a807
Add a note about the image processing issues
As it is indicated in #37, #62, #66 and #85, i3lock doesn't planned to add this feature.
2019-09-20 12:47:58 +00:00
Michael Stapelberg abe1e3c85d Update CHANGELOG, I3LOCK_VERSION, configure.ac 2019-07-21 11:14:54 +02:00
Michael Stapelberg db7e3ba222 i3lock.1: --raw: add an example of how to use convert(1) 2019-07-21 11:14:54 +02:00
Ingo Bürk 09fd83342a
Merge pull request #241 from stapelberg/master
Revert "Add option to lock TTY switching"
2019-07-21 10:25:18 +02:00
Michael Stapelberg ad056ca396 Revert "Add option to lock TTY switching"
This reverts commit dcfcba3ed4.

As-is, this requires i3lock to be run with too many permissions, for a feature
which many users will never need. In issue #231, we concluded that interested
users are better off using a dedicated virtual console locker such as vlock(1).

related to #231
2019-07-21 10:16:16 +02:00
Orestis e30ce8e074
Merge pull request #235 from mortie/patch-1
Remove one last reference to the -r shortopt
2019-05-26 00:22:06 +03:00
Martin Dørum 74d2abf63d
Remove one last reference to the -r shortopt
I'm sorry I missed this earlier. I just noticed it now while reading through a diff.
2019-05-25 23:15:25 +02:00
Martin Dørum aa7984f215 Add rgbx, xrgb, bgr, etc. formats (#234) 2019-05-23 21:03:48 -04:00
Martin Dørum 0be11444bc Remove shortopt from --raw (#232) 2019-05-23 19:07:51 -04:00
Martin Dørum ebf3428f10 Add a --raw option to read image as raw bytes (#226) 2019-05-20 08:20:55 -04:00
Ingo Bürk 78a601bf98
Merge pull request #213 from trickeydan/patch-1
Rename Win Key to Super Key
2019-04-12 08:29:09 +02:00
Ingo Bürk 6d8a8d57f2
Merge pull request #223 from jtpereyda/ubuntu-install
add ubuntu install instructions
2019-04-12 08:23:51 +02:00
Joshua Pereyda d0157b8c10 Install instructions just point to the website 2019-03-18 13:22:34 -07:00
Joshua Pereyda a355bed013 fix Install title copypasta 2019-03-08 11:35:48 -08:00
Joshua Pereyda bad32996f3 add ubuntu install instructions 2019-03-08 11:29:33 -08:00
Ingo Bürk a395006844
Merge pull request #218 from ivanvig/wm_class-patch
added wm_class property
2019-01-15 20:59:38 +01:00
ivanvig 7e3c06c85b added WM_CLASS property 2019-01-15 16:10:39 -03:00
Ingo Bürk 393fb2ed55
Merge pull request #219 from MotoQuick/patch-1
Labels are now replaced with capital letters in the beginning
2019-01-15 17:32:37 +01:00
Edward P cae21b65c6
Labels are now replaced with capital letters in the beginning 2019-01-15 00:11:19 +02:00
Orestis dfe167bcac
Merge pull request #216 from pclouds/no-newline-in-errx
Remove \n from errx messages
2019-01-02 11:29:58 +02:00
Nguyễn Thái Ngọc Duy aad012484e Remove \n from errx messages
errx() already appends \n internally. "\n" in the error message will
result in a blank line after the message.
2019-01-01 19:12:39 +07:00
Dan Trickey b33fd9dc9e
Rename Win Key to Super Key 2018-12-17 16:29:30 +00:00
Ingo Bürk 581f225484
Merge pull request #183 from LorianColtof/master
Add command line option to lock TTY switching
2018-12-03 18:25:26 +01:00
Ingo Bürk 67524fbd0f
Merge pull request #208 from eplanet/install-file
Add build instructions
2018-12-03 07:06:15 +01:00
eplanet 6c3c7fc615 Add build instructions 2018-12-02 14:06:04 +01:00
Lorian Coltof dcfcba3ed4 Add option to lock TTY switching 2018-11-29 14:22:19 +01:00
Michael Stapelberg d9bcb58cc6 update I3LOCK_VERSION 2018-10-18 08:35:49 +02:00
Michael Stapelberg 4817fcc724 Update CHANGELOG and I3LOCK_VERSION 2018-10-18 08:35:31 +02:00
Orestis 8c993d25f5
Merge pull request #202 from stapelberg/version
Makefile: include I3LOCK_VERSION in dist tarballs
2018-10-16 11:29:02 +03:00
Michael Stapelberg 7c20c9a3e3 Makefile: include I3LOCK_VERSION in dist tarballs
fixes #129
2018-10-16 08:32:28 +02:00
Michael Stapelberg a5c588a8eb Update CHANGELOG and I3LOCK_VERSION 2018-10-10 18:18:03 +02:00
Orestis f74c013576
Merge pull request #188 from Airblader/feature-issue-template
Added ISSUE_TEMPLATE.md
2018-09-07 22:53:01 +03:00
Ingo Bürk 3f8b0a12c3
Merge pull request #192 from layus/fast-type
Keep only the last attempt for retry_verification
2018-08-23 14:50:20 +02:00
Guillaume Maudoux 50c81d5717 Keep only the last attempt for retry_verification 2018-08-23 13:35:20 +02:00
Ingo Bürk 10b8170f55 Added ISSUE_TEMPLATE.md 2018-05-20 16:53:55 +02:00
Ingo Bürk ad680b4019
Merge pull request #185 from stapelberg/dpi
Respect Xft.dpi for determining the unlock indicator’s scale factor
2018-05-11 16:06:20 +02:00
Michael Stapelberg ec5f21d1f8 travis: build in Debian sid Docker container 2018-05-11 15:40:43 +02:00