Waybar/src
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 Fix random segfault on GTK icon functions 2023-07-03 22:32:24 +01:00
util Fix random segfault on GTK icon functions 2023-07-03 22:32:24 +01:00
AIconLabel.cpp refactor: disable icon by default 2022-03-10 09:48:50 +01:00
ALabel.cpp refactor: lint 2022-04-06 08:37:19 +02:00
AModule.cpp add reverse-mouse-scrolling to configure mouse wheel reverse scrolling 2023-07-01 10:35:37 -05:00
bar.cpp Merge pull request #1589 from qubidt/module-group-orientation 2023-03-02 19:42:22 +01:00
client.cpp fix: adapt to fmt 9.0.0 breaking changes 2022-07-13 22:36:32 -07:00
config.cpp config:output:Allow multiple exclusions & wildcard 2023-03-13 00:44:07 +00:00
factory.cpp save 2023-06-28 02:52:01 +03:00
group.cpp group module: configurable orientation 2022-09-03 18:37:35 -05:00
main.cpp Fixing memory leak on update UPower tooltip 2023-02-08 17:19:51 +11:00