waybar/include
André Aparício a1cd0acac5 Fix random segfault on GTK icon functions
The segfaults were happening on GTK icon theme functions, which are
called via the C++ interface functions such as Gtk::IconTheme::has_icon.

There are multiple modules and threads using this functions on the default
icon theme by calling Gtk::IconTheme::get_default(), which returns the same
object for all callers, and was causing concurrent access to the same internal
data structures on the GTK lib. Even a seemingly read-only function such as
has_icon can cause writes due to the internal icon cache being updated.

To avoid this issues, a program wide global mutex must be used to ensure
a single thread is accessing the default icon theme instance.

This commit implements wrappers for the existing IconTheme function calls,
ensuring the global lock is held while calling the underling GTK functions.
2023-07-03 22:32:24 +01:00
..
modules Merge pull request #2212 from evyatark2/wpscroll 2023-07-02 11:46:56 +02:00
util Fix random segfault on GTK icon functions 2023-07-03 22:32:24 +01:00
AIconLabel.hpp Happy clang 2023-03-02 16:57:32 +03:00
ALabel.hpp Happy clang 2023-03-02 16:57:32 +03:00
AModule.hpp fix: lint 2023-04-03 09:41:24 +02:00
bar.hpp refactor: lint 2022-04-06 08:37:19 +02:00
client.hpp refactor: lint 2022-04-06 08:37:19 +02:00
config.hpp Add support for reading the config path from env 2022-09-05 08:21:36 +02:00
factory.hpp save 2023-06-28 02:52:01 +03:00
group.hpp Merge pull request #2037 from LukashonakV/Happy_clang 2023-03-02 19:42:38 +01:00
IModule.hpp ISSUE#1977. AModule implements module actions call 2023-02-28 15:32:28 +03:00