1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-06 22:18:36 +00:00

2872 Commits

Author SHA1 Message Date
Tin Švagelj
c7df9c092e
Fix imlib_cache_size_setting::lua_setter (#1843)
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-19 15:28:36 +00:00
Tin Švagelj
d815f9aa49
Create missing atom for query (#1834)
I'm assuming sending None Atom in the request will cause an error.
I defined those properties on my platform so that's why the function
didn't fail.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-17 19:40:01 +00:00
Tin Švagelj
f4b3229fc3
Exclusive XInput event handling (#1821)
- This commit changes mouse events to use XInput exclusively if it's not disabled.
- Added support for changing valuator properties through device configuration (see wiki for details).
- Fixed and cleaned up a lot of previously added code.
2024-04-17 02:04:14 +00:00
Tin Švagelj
c2dfa29f33
Refactor x11 event handling (#1819)
Move event handling code into separate functions.
2024-04-12 14:46:39 +00:00
Tin Švagelj
9565e2f7c2
Fix missing y_abs argument copy (#1813)
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-11 13:34:56 +00:00
Tin Švagelj
e4213024e4
Set propagate to True, to not propagate by default (#1809)
XSendEvent propagate bool argument is actually "don't force propagation", so
True value means the event will only get propagated if it's not handled,
and False means the event will _always_ get propagated.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-10 17:35:30 +00:00
Tin Švagelj
9424ab8ca5
Fix event propagation on Openbox
Events now get correctly propagated to a window (or root if none) behind conky.
This was a necessary change to handle cases such as MATE+caja where caja
is used between conky and background to show icons and desktop menu.

* Don't change input focus on propagation

Could cause input focus flickering, so I'm leaving it up to WMs to manage focus.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-09 12:28:26 +00:00
Tin Švagelj
0419e01fe4
Fix render order in draw_stuff (#1801)
Pre draw hook is expected to run before anything else, so I moved imlib (e.g. ${image}) rendering after it.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-08 12:20:50 +00:00
Tin Švagelj
407769d03d
Skip propagation of non-input events
Fixes #1771

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-04 11:51:48 +00:00
Tin Švagelj
bfe39a8fd2
Handle external PropertyNotify events
Fixes #1792

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-04 11:51:01 +00:00
Brenden Matthews
d0033efe93 Increase max length of ACPI temp (fixes #977) 2024-03-23 09:27:29 -04:00
Brenden Matthews
8efb3f0e0e Fix naming conflict for Imlib2.h 2024-03-11 16:08:32 -04:00
Brenden Matthews
755e8c3e10 Fix regression in lua_load path handling
This should resolve #1778 (and similar issues).
2024-03-10 09:57:58 -04:00
Livanh
ee42a51006 Re-define text_object.data.l as "int64_t" 2024-03-04 08:18:19 -05:00
Livanh
4571c7f5d8 Define text_object.data.l as "long long"
This ensures that text_object.data.l is at least 64 bits in size,
even in a 32-bit environment. It can cause issues if smaller,
such as text turning black instead of a desired color (see #1477).
2024-03-04 08:18:19 -05:00
Brenden Matthews
5dd632c991 Don't call FcFini()
Fontconfig has a bug in FcFini() where it calls assert when it probably
shouldn't. This looks to be fixed in
6f6b397802,
which is in libfontconfig >=2.13.93.

Removing this seems to be safe, it will cause valgrind to show mem
leaks, but it doesn't look to be a problem in practice.
2024-02-26 08:40:02 -05:00
Tin Švagelj
97b6233d50 Add wlr layer shell check
Print a nicer error message if the compositor doesn't support
wlr-layer-shell-unstable-v1 spec.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-02-25 19:53:57 -05:00
Tin Švagelj
27d64fe834 Fix buffer overflow on X11 error bug
Skip descendant checking if cursor over desktop in query_x11_window_at_pos.
Simplify and correct check for whether cursor is over conky.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-02-25 08:13:45 -05:00
Brenden Matthews
8dae420bc8 Fix bad new/delete usage 2024-02-23 08:56:07 -05:00
Julian Schuler
f11eb219ad Format code using 'make clang-format' 2024-02-23 08:36:32 -05:00
Julian Schuler
183b45c7ea Add basic pulse audio source support
Added conky objects $if_pa_source_running and $if_pa_source_muted to
query the status of the default pulse audio source.
2024-02-23 08:36:32 -05:00
Brenden Matthews
35357e437c Update copyright 2024-02-22 08:53:35 -05:00
Brenden Matthews
ac9d107e77 Remove build date and associated vars
For reproducible builds, the build date messes things up, and some
distros just set it to 1980 now anyway. Thus, it's better to remove the
date altogether.
2024-02-22 08:36:21 -05:00
Brenden Matthews
51f6f0576c Fix update_interval handling from CLI args 2024-02-21 09:48:59 -05:00
Suyooo
aa6e61be2e X11: Fix infinite loop from Expose events being returned 2024-02-19 08:37:45 -05:00
Gene Carlson
0af1939caf Show cached memory as in free (Linux only) 2024-01-14 08:03:15 -05:00
Brenden Matthews
2fbe79a65c
One more byte for error 2023-11-19 14:16:34 -05:00
Tin
b9e7fa0574
Namespace mouse-events.cc/.h
Cleanup number namespaces so they use cstdint types instead of stdint.h
types. Latter could've caused some issues in the future.

Simplify valuator mask checking expression.

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:34 -05:00
Tin
1b45d95e26
Use core X11 events when Xinput is enabled
There was no way to propagate move events otherwise

Also, clang-format decided to kick in and reformat Xinput related
code...

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
20f9f60c6a
Fix build & cleanup
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
cbebe44707
Fix DependentOptions splitting arguments on spaces
Fix broken x11.cc

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
f6d42c5a69
Fix issues building without BUILD_ARGB flag
Fix half-saved change in display-wayland.cc

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
4936c7492c
Provide a notice when build options get disabled
Reformat files and hope it invalidates CI cache :)

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
7a3020fad5
Fix CMake script
Cleanup debug statements

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
916be9812b
Handle movement through XInput if enabled
Cleanup modifiers
- This is preparation so that once Wayland adds support for these
  they're not an alien X11 bitset.
- Removed ones that aren't actual modifiers.

Tidy up code

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
a3fc61b078
Cleanup focus handling code on propagation
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
965d7dc0a4
Simplify cursor checking
Additional tweaks and docs improvements

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:33 -05:00
Tin
a591228b71
Modify CI and Nix flake
Code tweaks

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
a4ac632db7
Fix X11 area enter & leave bug
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
bf900545c0
Debug X11 enter & leave events
Fix import derps

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
5d5e235467
Cleanup display-x11 includes
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
c4ef5f5e8c
Use SFINAE to collapse numeric pust_table_value impls
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
b5652006ef
Remove uint to make MacOS happy
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
544a9060b8
Cleanup includes
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
e512405492
Add <array> import
Update /doc

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
f6a08f79b4
Tweaks
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
b4fa9b8ad9
Remove duplicate BUILD_MOUSE_EVENTS includes (again)
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
b1b7ae8b2c
Fix X11 build
Fix most issues with X11 event propagation.
Remove X11 code from mouse-events.cc/.h completely.

CMake:
Update toluapp cmake_minimum_required to stop it complaining during build.
Fix ConkyPlatformCheck.cmake not providing access to cairo, imlib2 and rsvg to Wayland.
Move BUILD_MOUSE_EVENTS includes under BUILD_GUI so they're not duplicated.

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
8195533bb3
Fix lua stack pops in one of error branches
Remove some code added by accident; reduce change list.
Fix mouse_enter and mouse_leave events.

Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00
Tin
189d243623
Add deprecation error and fix stack management
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:32 -05:00