1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 05:29:11 +00:00
Commit Graph

4334 Commits

Author SHA1 Message Date
Tin Švagelj
f3f53fd764
Fix conky-cairo_imlib2_helper dependency conditions (#1874)
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-30 15:17:44 +00:00
Brenden Matthews
bbc6193014 Docker: Add gperf, enable Lua Cairo Xlib bindings 2024-04-28 18:41:41 -04:00
Brenden Matthews
10045ab9f1 Require gperf at build-time
Rather than allowing the build to continue without gperf, we should
fail with an error so that the colour behaviour does not change in a
backward incompatible manner. The old colour behaviour should continue
to work going forward.

This resolves #1868.
2024-04-28 18:27:34 -04:00
Brenden Matthews
777b9a8dd7 Simplify binary include handling (and fix build) 2024-04-28 16:50:15 -04:00
Brenden Matthews
ef3ed8c1dc Include these when linting 2024-04-28 15:22:59 -04:00
Brenden Matthews
7598b89960 Disable -Wregister on gperf output
Older versions of gperf use the `register` keyword which is deprecated
in C++17, and warnings are treated as errors.

This disables the warning on gperf's output (colour-names.hh). I also
renamed `colour-names.cc` -> `colour-names.hh` because we're including
it as a header, not compiling it separately.

This resolves #1865.
2024-04-28 15:22:59 -04:00
Brenden Matthews
b6b9b3666e Enable cURL, RSS on mac build, lint codeql.yml 2024-04-25 20:13:02 -04:00
Brenden Matthews
e686a5f991 Set RELEASE=ON only when it's a release 2024-04-25 20:13:02 -04:00
Brenden Matthews
e93819b2ea Print appimage version for visibility 2024-04-25 20:13:02 -04:00
Brenden Matthews
e2147bd5d7 Re-enable RSS in AppImage, also enable in Nix flake
The behaviour of the RSS flag changed in 4936c74, previously it would
enable cURL support when it was switched on, but now you must pass both
BUILD_RSS=ON and BUILD_CURL=ON to CMake at configure time.

This fixes #1861.
2024-04-25 20:13:02 -04:00
Tin Švagelj
71c4e6ea52
Fix bad query_x11_windows early returns (#1864)
* Fix bad early returns
* Prevent fallback tree traversal from propagation code

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-26 00:09:20 +00:00
Brenden Matthews
0821c25533 This span doesn't need to exist 2024-04-24 17:01:38 -04:00
Brenden Matthews
3d62277edd Fix type def, handle error case 2024-04-24 17:01:38 -04:00
Brenden Matthews
4c2969778b Link to latest commit in web footer 2024-04-24 17:01:38 -04:00
Brenden Matthews
224c5ebd72 Explicitly note updated time is UTC 2024-04-24 15:17:29 -04:00
Brenden Matthews
c0f06aa0a0 Bump version 2024-04-24 15:17:13 -04:00
Tin Švagelj
c5ee70177c
set_struts improvements (#1849)
Simplify and speed up strut code

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-24 13:56:28 +00:00
Tin Švagelj
93ffab51a0
Use perfect hash (gperf) for parsing color names (#1848)
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-24 06:24:54 +00:00
Tin Švagelj
6adf6b9dd4
Cleanup build flags, global namespace and includes (#1841)
- Separated displays so they don't have to all be included in build even when the features are disabled.
- Removed weird linker magic for display init and replaced it with straightforward (and faster) template functions that behave the same.
  - Replaced `disabled_display_output` classes with log messages.
- Add explicit compiler errors when feature dependent headers get included where they shouldn't (wl, x11).
- Switch BUILD_MOUSE_EVENTS dependency from OWN_WINDOW to BUILD_X11.
- Other minor improvements to some existing code which shouldn't affect behavior.
- Improve documentation.
- Remove X11 from unrelated headers.
  - This reaches 0% unneeded X11 polution in the sources.
  - Reenabled parts of window_type which would work in Wayland.
  - Remove unneeded guards.
- Display files are now no longer compiled if their features are disabled.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-23 21:15:37 +00:00
Faris Han
c51fbe66f6 Fix web components and pages (UI) 2024-04-22 07:22:34 -04:00
Brenden Matthews
260ac6aaec Revert "Fix matrix URL"
This reverts commit c8d1bbe58c.
2024-04-20 13:35:31 -04:00
Brenden Matthews
c8d1bbe58c Fix matrix URL 2024-04-20 10:04:14 -04:00
Tin Švagelj
45500b1439
Separate cairo-xlib.h Lua bindings from cairo.h (#1844)
- Separate cairo-xlib.h Lua bindings from cairo.h
  - This allows cairo.h to be used from Lua on Wayland without X11 as requirement.
- Add pango dependency for Wayland (adds pangocairo).
- Make graphics related bindings depend on BUILD_GUI.
- Remove BUILD_GUI guard around options in platform checks.
  - Keeping only checks that **directly contain module requirements**

A way of creating surfaces in Lua that uses Shm allocated buffers should
be added in future. This commit only cleans up build options to avoid weird
errors.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-19 15:31:23 +00:00
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
49be2177af
Track more context labels (#1842) 2024-04-19 15:27:58 +00:00
Brenden Matthews
e1222c5baf Always run Nix & AppImage builds on PRs 2024-04-18 07:51:42 -04:00
Brenden Matthews
6f8f8fe648 Annoyingly, the artifacts go into a subdir
The artifact files are actually zip files, and when extracted, are in
subdirs within the artifact path.
2024-04-18 07:26:49 -04:00
Brenden Matthews
5a61390b14 Bump version 2024-04-18 07:15:05 -04: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
Brenden Matthews
f9579ffce2 Name not optional 2024-04-17 07:33:18 -04:00
Brenden Matthews
3980c591bd Rename release artifacts 2024-04-17 07:33:18 -04:00
Brenden Matthews
1dedaa2231 Fix release artifact path 2024-04-17 07:09:05 -04:00
Brenden Matthews
fcf56693b9 Separate feature/bug/deps release labels 2024-04-17 07:05:17 -04:00
Brenden Matthews
ae13f0c42d Bump version 2024-04-17 06:47:37 -04: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
Brenden Matthews
d56c0372f5 Issue template: Link docs to obtain stack traces 2024-04-15 14:06:40 -04: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
c1c0d95701
Improve documentation for window types and hints (#1818)
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
2024-04-11 18:16:14 +00:00
Brenden Matthews
53ced18c68 Sort 2024-04-11 13:58:38 -04:00
Brenden Matthews
f927a4fafb Bump follow-redirects (and other things)
To address https://github.com/brndnmtthws/conky/security/dependabot/17
2024-04-11 13:58:38 -04:00
Brenden Matthews
2ffc5d67a6 Add modified date to web docs 2024-04-11 11:05:26 -04:00
Brenden Matthews
d45836f14e Bump web deps 2024-04-11 10:39:22 -04: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
Brenden Matthews
439783be2c Label dependency changes 2024-04-10 12:16:48 -04: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
4eecf3b88f Update README.md
Poor choice of words
2024-04-03 08:13:45 -04:00