Remove exit_terminate signal
This commit is contained in:
parent
07da1a2967
commit
75ff5c3b14
@ -36,10 +36,10 @@ using modulemap_t = std::map<alignment, vector<module_t>>;
|
||||
// }}}
|
||||
|
||||
class controller
|
||||
: public signal_receiver<SIGN_PRIORITY_CONTROLLER, signals::eventqueue::exit_terminate,
|
||||
signals::eventqueue::exit_reload, signals::eventqueue::notify_change, signals::eventqueue::notify_forcechange,
|
||||
signals::eventqueue::check_state, signals::ipc::action, signals::ipc::command, signals::ipc::hook,
|
||||
signals::ui::ready, signals::ui::button_press, signals::ui::update_background> {
|
||||
: public signal_receiver<SIGN_PRIORITY_CONTROLLER, signals::eventqueue::exit_reload,
|
||||
signals::eventqueue::notify_change, signals::eventqueue::notify_forcechange, signals::eventqueue::check_state,
|
||||
signals::ipc::action, signals::ipc::command, signals::ipc::hook, signals::ui::ready,
|
||||
signals::ui::button_press, signals::ui::update_background> {
|
||||
public:
|
||||
using make_type = unique_ptr<controller>;
|
||||
static make_type make(unique_ptr<ipc>&& ipc, unique_ptr<inotify_watch>&& config_watch);
|
||||
@ -70,7 +70,6 @@ class controller
|
||||
|
||||
bool on(const signals::eventqueue::notify_change& evt) override;
|
||||
bool on(const signals::eventqueue::notify_forcechange& evt) override;
|
||||
bool on(const signals::eventqueue::exit_terminate& evt) override;
|
||||
bool on(const signals::eventqueue::exit_reload& evt) override;
|
||||
bool on(const signals::eventqueue::check_state& evt) override;
|
||||
bool on(const signals::ui::ready& evt) override;
|
||||
|
@ -53,9 +53,6 @@ namespace signals {
|
||||
struct start : public detail::base_signal<start> {
|
||||
using base_type::base_type;
|
||||
};
|
||||
struct exit_terminate : public detail::base_signal<exit_terminate> {
|
||||
using base_type::base_type;
|
||||
};
|
||||
struct exit_reload : public detail::base_signal<exit_reload> {
|
||||
using base_type::base_type;
|
||||
};
|
||||
|
@ -16,7 +16,6 @@ namespace signals {
|
||||
|
||||
namespace eventqueue {
|
||||
struct start;
|
||||
struct exit_terminate;
|
||||
struct exit_reload;
|
||||
struct notify_change;
|
||||
struct notify_forcechange;
|
||||
|
@ -677,14 +677,6 @@ bool controller::on(const signals::eventqueue::notify_forcechange&) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process eventqueue terminate event
|
||||
*/
|
||||
bool controller::on(const signals::eventqueue::exit_terminate&) {
|
||||
trigger_quit(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process eventqueue reload event
|
||||
*/
|
||||
@ -703,7 +695,7 @@ bool controller::on(const signals::eventqueue::check_state&) {
|
||||
}
|
||||
}
|
||||
m_log.warn("No running modules...");
|
||||
on(signals::eventqueue::exit_terminate{});
|
||||
trigger_quit(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ screen::~screen() {
|
||||
/**
|
||||
* Handle XCB_RANDR_SCREEN_CHANGE_NOTIFY events
|
||||
*
|
||||
* If any of the monitors have changed we raise USR1 to trigger a reload
|
||||
* If any of the monitors have changed we trigger a reload
|
||||
*/
|
||||
void screen::handle(const evt::randr_screen_change_notify& evt) {
|
||||
if (m_sigraised || evt->request_window != m_proxy) {
|
||||
|
Loading…
Reference in New Issue
Block a user