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
Tin
d4eb91fe39
Improve Lua table data
...
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:31 -05:00
Tin
e87638201b
Add support for all previously supported events
...
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:31 -05:00
Tin
958bd1c525
Pass cursor move event to the script
...
Set initial window scale to 0 because wayland freezes the process when it's not >0.
Provide more information from `llua_mouse_hook` about why the callback is failing.
Prevent call to `llua_init` when provided lua_load script doesn't exist.
- This caused me a headache and now lua_L won't be initialized if the
script doesn't exist. This prevents a missing file from causing later
issues which might be harder to catch.
Feature gated X11 in mouse-events.h/.cc files.
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:16:31 -05:00
Tin
7afeaee755
Include mouse-events.h in llua.cc
...
Signed-off-by: Tin <tin.svagelj@live.com>
2023-11-19 14:15:04 -05:00
Tin Svagelj
de374f3045
Add Wayland event listeners for pointer
...
Signed-off-by: Tin Svagelj <tin.svagelj@live.com>
2023-11-19 14:15:04 -05:00
Tin Svagelj
afa5f326e8
Prepare environment
...
Signed-off-by: Tin Svagelj <tin.svagelj@live.com>
2023-11-19 14:14:59 -05:00
Brenden Matthews
aac26b549e
Fix long/short cpu stat init
...
Fixes #1630 .
2023-09-30 17:20:45 -04:00
Ben Kibbey
53973402b4
hwmon: Fix device name path for some devices.
2023-09-27 08:17:45 -04:00
François Revol
c781b42f66
X11: Fix segfault on SIGINT
...
deinit_x11() was called too late, and it seems some libs like xinerama
and xcb-render add cleanup hooks but forget to remove them when they get
unloaded.
2023-08-12 10:04:24 -04:00
François Revol
16b89074d7
Fix Haiku build
...
Missing new OS-specific call, stubbed for now.
2023-08-08 08:40:51 -04:00
François Revol
8f403251a8
Fix missing asprintf definition on Haiku
...
It needs _GNU_SOURCE and is declared in stdio.h as on GNU/Linux,
but I suppose it's not included by the existing includes.
2023-08-08 08:40:51 -04:00
François Revol
2bd267da31
Fix build without X11
...
On Haiku it complained about missing X11 header.
2023-08-08 08:40:51 -04:00
Brenden Matthews
1592881663
Fix the words
...
per 00166b49b5 (commitcomment-113653843)
2023-05-17 19:47:51 -04:00
Guido Falsi
796802b7a9
Fix build on FreeBSD.
...
The freq_sysctl varaible is being redefined with a different type.
Update the first definition directly.
2023-05-17 22:29:45 +00:00
bi4k8
c406177d43
core: reset selected_font when clearing fonts
2023-05-09 21:08:35 +00:00
bi4k8
00166b49b5
text_object: fix typo in cutesy error message
2023-05-09 02:26:29 +00:00
bi4k8
faba25d197
logging: define CRIT_ERR_FREE and simplify CRIT_ERR
...
it's surprising to pass 2 nullptr arguments at most of the callsites of a logging function, so instead let callers explicitly state whether they have auxiliary data to free
2023-05-09 02:26:29 +00:00
bi4k8
19e779cdf9
core, logging: remove clean_up_without_threads and simplify clean_up
2023-05-09 02:26:29 +00:00
bi4k8
863bd2441b
logging: remove unused THREAD_CRIT_ERR
2023-05-09 02:26:29 +00:00
bi4k8
74de272dce
i8k: allocate i8k_procbuf after opening /proc/i8k
...
this lets us simplify error handling
2023-05-09 02:26:29 +00:00
bi4k8
48154e9805
i8k: do not consider failing to open /proc/i8k fatal
...
this also fixes the segfault that would happen in the main loop after `clean_up_without_threads` (#945 )
2023-05-09 02:26:29 +00:00