Michael Swiger
4088033ff6
Fix indicator buffer not resizing after display powers off
2021-07-05 22:56:20 +02:00
Simon Plakolb
9754241080
Ensure buffer size is multiple of buffer scale
...
An odd value of fe.height lead to the indicator disappearing. This was
due to the buffer size no longer being a multiple of the buffer scale.
This commit fixes the issue by checking both height and width to be a
multiple of scale.
This is done early to avoid excessive re-calls of create_buffer if the
buffer_height != new_height in render.c line 314 (now 318).
2021-07-05 14:43:26 +02:00
loserMcloser
bac71d9c8d
Draw ring and inner fill separately
2021-06-22 19:30:11 +02:00
Elyes HAOUAS
baa1ae99df
Fix some typos
...
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
2021-04-12 21:28:59 +02:00
Simon Ser
9d3da72a39
Use wl_surface.damage_buffer
...
We incorrectly used the buffer size instead of the surface size.
Let's not bother and just damage the maximum region.
2021-02-17 16:50:38 +01:00
Simon Ser
05325b1197
Initialize indicator size to zero
...
Initializing to 1 is incorrect when the surface scale is > 1.
2021-02-17 16:50:38 +01:00
Simon Ser
691415bf95
pool-buffer: handle zero-sized buffers
...
mako does something similar.
2021-02-17 16:50:38 +01:00
Martin Dørum
235b925df7
Fix a potential use-after-free
2020-10-15 15:17:41 +02:00
Yaroslav
c46a5197a2
refresh pam credentials after successful authentication
2020-07-13 15:49:10 +02:00
Martin Dørum
a99afe6a70
Implement key repeat
2020-06-19 23:02:23 +02:00
Nils
a6b3a0956b
Use xkb_keymap_new_from_buffer instead of xkb_keymap_new_from_string
...
xkb_keymap_new_from_string just calls xkb_keymap_new_from_buffer with size as `strlen(string)`.
0f1cae0cc4/src/keymap.c (L164)
According to the [spec](https://gitlab.freedesktop.org/wayland/wayland/-/blob/master/protocol/wayland.xml#L2182 ), MAP_PRIVATE should be used.
2020-03-29 21:00:33 +02:00
Jakub Profota
73754703c5
Added --indicator-x/y-position
2020-03-06 15:21:24 +01:00
Jakub Profota
1620d98411
Added --indicator-x\y-position
2020-03-06 15:21:24 +01:00
Jakub Profota
18e2a70ddb
Added --indicator-x/y-position
2020-03-06 15:21:24 +01:00
Jakub Profota
6015f4450d
Added --indicator-x/y-position
2020-03-06 15:21:24 +01:00
Michael Vetter
5da2b1d861
Set version to 1.6
...
It seems this gets forgotten before doing a release.
Like last time: https://github.com/swaywm/swaylock/pull/84
So this time I will try differently and set it to the (probably)
next version number :-)
2020-01-23 07:30:27 -07:00
Eli Schwartz
89f1ede511
fish-completion: use the correct fallback directory
...
fish completions should never be installed to share/fish/completions/ as
that directory is reserved exclusively for completions shipped as part
of the fish source code.
Use the same vendor_completions.d/ directory which the default fish
configuration uses.
2020-01-22 09:19:47 -07:00
Eli Schwartz
3baa500c5e
completion: use pkg-config to get install location for bash/fish
...
Both shells provide pkg-config files which declare their designated
completionsdir. Use this as the primary source of truth.
2020-01-22 09:19:47 -07:00
Namkhai B
dee002155b
Remove FreeBSD-specific PAM configuration
...
Something in FreeBSD's PAM modules changed, and
now using the "passwd" configuration file fails to unlock
2020-01-06 13:18:25 -07:00
Matt Della
a7404e1096
Added option to adjust ring position via CLI arguments and the config file
2019-11-27 19:53:07 -05:00
Olegs Jeremejevs
426e1ce93d
Fix, clean up and sync docs and completions
2019-09-12 16:33:24 -04:00
HardDie
ba31e2eaee
Submit password by pressing Ctrl+m
...
As it work in emacs style console
2019-08-15 18:47:27 +03:00
Alexander Martin
666ae950bc
Adds option to show indicator even if idle
2019-08-04 02:15:49 -04:00
Martin Dørum
080e8356b7
properly fix indicator position
2019-07-20 10:06:33 +03:00
Martin Dørum
b1a7defa00
seed rand
2019-06-28 10:27:42 -04:00
Martin Dørum
25ce4b12bb
fix indicator position
2019-06-28 10:27:34 -04:00
Abdelhakim Qbaich
11560381bf
Damage state when the keyboard layout changes
2019-06-22 22:36:53 +03:00
Abdelhakim Qbaich
89b214612c
Resizable buffer size for the subsurface
2019-06-22 22:36:53 +03:00
Abdelhakim Qbaich
e049fa4868
Minor edits
2019-06-22 22:36:53 +03:00
Michael Vetter
a9b274eb6c
Adapt version number to actual release
2019-05-23 09:43:51 +03:00
Jan Beich
96e281fdb2
pool-buffer: add L suffix to POSIX version for consistency
2019-05-20 19:51:48 +03:00
Jan Beich
45c587e93c
loop: bump required POSIX version for poll()
2019-05-20 19:51:48 +03:00
Peter Kasza
183d1bd549
Add fixed font-size option for indicator
...
This commit adds a new command line option called --font-size to
specify a fixed font size in the indicator. The default value for
font-size is 0, which means that the text will autoscale. Any other
positive value will result in a fixed text size.
2019-05-05 09:25:59 -06:00
Gabriel Sanches
84bfc6c7ed
Submit password by pressing Ctrl+m ( close #75 )
2019-04-29 08:37:47 -06:00
Drew DeVault
f403cc0702
Merge pull request #73 from jeremiah-miller/add-hide-keyboard-layout
...
Add hide keyboard layout option
2019-04-22 16:14:09 -06:00
bbgun7
4971afb52d
Described hide-keyboard-layout option in swaylock.1.scd
2019-04-22 11:36:37 -07:00
bbgun7
86f4fea55e
Added hide keyboard layout option
2019-04-22 10:34:19 -07:00
Geoff Greer
98e5afe364
Fix lock indicator position on hidpi screens.
2019-04-03 01:15:51 -04:00
Brian Ashworth
7892d8cc51
Allow spaces in image file path
...
This allows one or more spaces to be in the image file path
2019-04-01 11:33:14 +03:00
Kenny Levinsen
d815e29b64
Do not exit if no outputs are present
2019-03-30 00:37:59 +02:00
Anders Nylander
7d5a73b0a9
Decouple the drawing of the background from drawing the indicator.
...
* Render background only once in main wl_surface
* Render indicator on subsurface
2019-03-20 23:07:31 +02:00
Drew DeVault
6b3be42264
Merge pull request #53 from swaywm/fix-meson-version
...
Fix --version when building from tarball
2019-02-12 23:27:26 +01:00
emersion
076d442c03
Fix --version when building from tarball
2019-02-12 23:25:56 +01:00
MalteT
ec78bb121f
Fix minor typo in man page
2019-02-12 12:24:21 +01:00
Drew DeVault
37280a92d9
Merge pull request #47 from bendooru/layout-text
...
Show current xkb layout while typing
2019-02-06 02:09:06 +01:00
Dominik Bendle
a052a56bc2
Display xkb layout while typing
...
Displays the current keyboard layout below the unlock indicator if more
than one xkb layout is configured or the show-keyboard-layout option is
given. The text is displayed with a background box.
Adds commandline options for text color, background color and border
color of the box as well.
2019-02-06 01:42:49 +01:00
Drew DeVault
1db5c78037
Merge pull request #45 from jubalh/version
...
Set version in project file
2019-02-05 14:37:17 +01:00
Michael Vetter
3515c4b453
Set version in project file
...
Let's set the version in the meson file instead of declaring it outside.
In case git is installed we use the git hash as version. Instead it
isn't (like on a clean build system), let's use the version defined in
the project.
2019-02-05 14:19:14 +01:00
Drew DeVault
effdea5231
Merge pull request #39 from bendooru/show-failed-attempts
...
Add option show-failed-attempts
2019-01-29 14:48:00 -05:00
Dominik Bendle
40e9098a74
Add option show-failed-attempts
...
Keeps track of unsuccessful authentication attempts via an int counter
in the state struct. Displays on the unlock indicator, but will be
replaced by the Caps Lock text if enabled.
2019-01-29 20:44:32 +01:00