Commit graph

2578 commits

Author SHA1 Message Date
Adam Gausmann
6cd66286f2 Tabs got broken, fixed visibility check 2017-12-14 21:57:02 -06:00
Adam Gausmann
0f1ca2a5d3 Fix windows being focused when invisible 2017-12-14 21:57:02 -06:00
Geoff Greer
1312db8b43 Swaylock: Clear password buffer after use.
After a user enters or clears a password, try to overwrite the buffer containing it. That way it's not sitting around in RAM for something else to read later. Also, mlock() the password buffer so that it is never swapped out.

This also replaces the dynamically allocated buffer with a static char[1024]. Any characters past that are discarded until the user hits enter or escape.
2017-12-14 19:53:11 -08:00
Drew DeVault
af25e8ca90
Merge pull request #1515 from 4e554c4c/holds_up_fork
Fix `swaylock -f`
2017-12-14 15:38:52 -05:00
Björn Esser
02da9c4e7c
Adaptions for API change in json-c v0.13 2017-12-14 18:47:24 +01:00
Björn Esser
8272a9bae0
ipc-server: Acquire ownership of referenced json_object properly
When adding a referenced json_object with an unknown lifetime to
another json_object, it must be done with a wrapped call to
json_object_get() to acquire the ownership of that json_object.
2017-12-14 18:47:22 +01:00
Björn Esser
c6e12368a5
Lift restriction on json-c <= 0.12.1 2017-12-14 16:43:21 +01:00
Calvin Lee
609430053b Fix swaylock -f
This commit makes swaylock poll the registry the first time in its
fork in order for sway to recognize it and grant it lock privileges
2017-12-13 16:47:53 -07:00
Drew DeVault
52c4c166d8 Merge pull request #1446 from kon14/patch-1
Update README.el.md
2017-11-06 18:16:22 -05:00
Drew DeVault
5a150d5317 Merge pull request #1445 from yuilib/update-readme-ja
Update README.ja.md
2017-11-06 18:16:19 -05:00
Drew DeVault
37a4b62625 Merge pull request #1455 from etam/dbus_dependency
Update dbus dependency
2017-11-06 18:16:07 -05:00
Drew DeVault
96cd3a3271 Merge pull request #1443 from gferon/gferon-readme-edit
Update README.md
2017-11-06 18:15:55 -05:00
Drew DeVault
4b0479d7ba Merge pull request #1454 from etam/fix_init_tray
Fix init_tray function declaration
2017-11-06 18:15:45 -05:00
Drew DeVault
7c3b0ffc32
Merge pull request #1455 from etam/dbus_dependency
Update dbus dependency
2017-11-05 14:41:14 -05:00
Adam Mizerski
e677888b62 Add dbus info to readme 2017-11-05 20:24:57 +01:00
Drew DeVault
c4d4af7913
Merge pull request #1454 from etam/fix_init_tray
Fix init_tray function declaration
2017-11-05 14:23:47 -05:00
Adam Mizerski
4623900898 Dbus must be at least version 1.10
Function dbus_message_iter_get_element_count is available since 1.10.
2017-11-05 20:19:38 +01:00
Adam Mizerski
501c788f5f Fix init_tray function declaration
This fixes compilation failure:
error: call to function 'init_tray' without a real prototype
2017-11-05 20:09:16 +01:00
Drew DeVault
c352cae55e
Merge pull request #1443 from gferon/gferon-readme-edit
Update README.md
2017-11-02 12:38:18 -04:00
Gabriel Féron
4ab66bbbc3 Update README.md 2017-11-02 17:35:57 +01:00
Drew DeVault
42cfe1cf34
Merge pull request #1446 from kon14/patch-1
Update README.el.md
2017-11-01 08:42:41 -04:00
Drew DeVault
11e79f639a
Merge pull request #1445 from yuilib/update-readme-ja
Update README.ja.md
2017-11-01 08:42:30 -04:00
Konstantinos Feretos
7f7e94bf59
Update README.el.md 2017-11-01 12:08:23 +02:00
yuilib
85159b03b7 Update README.ja.md 2017-11-01 16:58:34 +09:00
Drew DeVault
59222bc3a7 Merge pull request #1441 from ptMuta/master
Removed trailing comma from swaybar click event json
2017-10-30 17:23:40 -04:00
Drew DeVault
b333fdff61 Merge pull request #1438 from mariusor/explicit_json-c_version
Explicitly setting the version of json-c required
2017-10-30 17:23:35 -04:00
Drew DeVault
1bc91e0a09 Merge pull request #1430 from dlrobertson/nvidia_drm
nvidia: Validate the nvidia_drm module options
2017-10-30 17:23:27 -04:00
Drew DeVault
d0367d1a67 Merge pull request #1427 from ranisalt/patch-1
Use add_compile_options instead of interpolation
2017-10-30 17:23:21 -04:00
Drew DeVault
ccf7e5ad7e
Merge pull request #1441 from ptMuta/master
Removed trailing comma from swaybar click event json
2017-10-28 10:45:39 -04:00
Joona Romppanen
675e4b7de7 Removed trailing comma from swaybar click event json 2017-10-28 17:35:48 +03:00
Drew DeVault
c57f68566a Merge pull request #1436 from dlrobertson/add_asan_build
Add Address Sanitized build type
2017-10-27 08:46:29 -04:00
Drew DeVault
ee6ed89e36 Merge pull request #1438 from mariusor/explicit_json-c_version
Explicitly setting the version of json-c required
2017-10-27 08:18:00 -04:00
Marius Orcsik
69e9b1386f
Explicitly setting the version of json-c required
to 0.12.1. This is needed because the development

 version breaks the existing API of json_object_array_length()

 by moving the return from int to size_t.

This would fix #1355
2017-10-27 12:17:02 +02:00
Dan Robertson
3d209be3d6
Add Address Sanitized build type
- Add -DCMAKE_BUILD_TYPE=ASAN to possible builds
2017-10-27 03:25:30 +00:00
Drew DeVault
d75ee3f9ce Merge pull request #1430 from dlrobertson/nvidia_drm
nvidia: Validate the nvidia_drm module options
2017-10-24 20:29:06 -04:00
Dan Robertson
88d042ec49
nvidia: Validate the nvidia_drm module options
When the proprietary nvidia driver is used, ensure the modeset option is
set instead of checking /proc/cmdline for nvidia-drm.modeset=1.
2017-10-24 22:35:31 +00:00
Drew DeVault
5551bf92a9 Merge pull request #1427 from ranisalt/patch-1
Use add_compile_options instead of interpolation
2017-10-23 21:48:31 -04:00
Ranieri Althoff
0d2baa1c89 Use add_compile_options instead of interpolation
Uses CMake's `add_compile_options` directive instead of interpolating  `CMAKE_C_FLAGS` for adding compilation flags.
2017-10-24 01:43:11 +00:00
Drew DeVault
0c1ef88a8d Merge pull request #1425 from ggreer/grab-error
swaygrab: Add some error handling.
2017-10-23 21:17:57 -04:00
Drew DeVault
6383c4d91c Merge pull request #1424 from ggreer/swaygrab-json
swaygrab: Prevent segfault if IPC response can't be parsed.
2017-10-23 21:17:55 -04:00
Drew DeVault
0f7e84c110 Merge pull request #1419 from 4e554c4c/better_logs
Print log level even if STDERR is not a tty
2017-10-23 21:17:52 -04:00
Drew DeVault
cf43670529 Merge pull request #1412 from Hummer12007/rcfix
handlers: preserve parent pointer value
2017-10-23 21:17:49 -04:00
Drew DeVault
23bc0b8c6a Remove broken link to Spanish translation
Fixes #1417
2017-10-23 21:17:16 -04:00
Drew DeVault
3c92a328e0 Add feature freeze notice to readme 2017-10-23 21:17:06 -04:00
Drew DeVault
b31b11f139 Merge pull request #1425 from ggreer/grab-error
swaygrab: Add some error handling.
2017-10-22 21:15:43 -04:00
Geoff Greer
29f27c7cdc swaygrab: Add some error handling.
- If IPC response contains `success: false`, abort and print error message.
- If tree has no nodes, abort with error msg instead of segfaulting.
2017-10-22 18:09:36 -07:00
Drew DeVault
d10e723183 Merge pull request #1424 from ggreer/swaygrab-json
swaygrab: Prevent segfault if IPC response can't be parsed.
2017-10-22 19:50:43 -04:00
Geoff Greer
98875443ea swaygrab: Increase max depth of JSON parsing to 256. Prevent segfault if IPC response can't be parsed.
The default max nesting depth of json-c is 32, which can cause some valid trees to fail to be parsed, so increase that. Also instead of segfaulting, just abort and print the error returned by json-c.
2017-10-22 14:09:50 -07:00
Drew DeVault
66d3777c14 Merge pull request #1419 from 4e554c4c/better_logs
Print log level even if STDERR is not a tty
2017-10-20 18:35:32 -04:00
Calvin Lee
016261fd64 Print log level even if STDERR is not a tty
Makes reading debug logs much easier, debug lines will start with `E`,
info lines with `I` and error lines with `E`.
2017-10-20 15:12:28 -06:00