From cbfbba070026afb9eeba83e1057494c05dbf7022 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Sat, 11 Nov 2023 03:47:55 +0100 Subject: [PATCH] Remove tray_visibility signal No longer needed since tray visibility is now controlled directly by the enclosing module --- include/events/signal.hpp | 3 --- include/events/signal_fwd.hpp | 1 - include/x11/legacy_tray_manager.hpp | 16 +++++++--------- include/x11/tray_manager.hpp | 15 +++++++-------- src/x11/legacy_tray_manager.cpp | 8 -------- src/x11/tray_manager.cpp | 4 ---- 6 files changed, 14 insertions(+), 33 deletions(-) diff --git a/include/events/signal.hpp b/include/events/signal.hpp index f25f92d4..016c8779 100644 --- a/include/events/signal.hpp +++ b/include/events/signal.hpp @@ -104,9 +104,6 @@ namespace signals { struct tray_pos_change : public detail::value_signal { using base_type::base_type; }; - struct tray_visibility : public detail::value_signal { - using base_type::base_type; - }; } // namespace ui_tray } // namespace signals diff --git a/include/events/signal_fwd.hpp b/include/events/signal_fwd.hpp index 7d4e26e4..5ac85c7b 100644 --- a/include/events/signal_fwd.hpp +++ b/include/events/signal_fwd.hpp @@ -36,7 +36,6 @@ namespace signals { } // namespace ui namespace ui_tray { struct tray_pos_change; - struct tray_visibility; } // namespace ui_tray } // namespace signals diff --git a/include/x11/legacy_tray_manager.hpp b/include/x11/legacy_tray_manager.hpp index 9ac61f7e..b65f3e28 100644 --- a/include/x11/legacy_tray_manager.hpp +++ b/include/x11/legacy_tray_manager.hpp @@ -116,14 +116,13 @@ class tray_client { unsigned int m_height; }; -class tray_manager - : public xpp::event::sink, - public signal_receiver, - public non_copyable_mixin, - public non_movable_mixin { +class tray_manager : public xpp::event::sink, + public signal_receiver, + public non_copyable_mixin, + public non_movable_mixin { public: using make_type = unique_ptr; static make_type make(const bar_settings& settings); @@ -194,7 +193,6 @@ class tray_manager bool on(const signals::ui::dim_window& evt) override; bool on(const signals::ui::update_background& evt) override; bool on(const signals::ui_tray::tray_pos_change& evt) override; - bool on(const signals::ui_tray::tray_visibility& evt) override; private: connection& m_connection; diff --git a/include/x11/tray_manager.hpp b/include/x11/tray_manager.hpp index 1c0302a8..08129c02 100644 --- a/include/x11/tray_manager.hpp +++ b/include/x11/tray_manager.hpp @@ -76,13 +76,13 @@ struct tray_settings { using on_update = std::function; -class manager : public xpp::event::sink, - public signal_receiver, - non_copyable_mixin, - non_movable_mixin { +class manager + : public xpp::event::sink, + public signal_receiver, + non_copyable_mixin, + non_movable_mixin { public: explicit manager(connection& conn, signal_emitter& emitter, const logger& logger, const bar_settings& bar_opts, on_update on_update); @@ -146,7 +146,6 @@ class manager : public xpp::event::sink