mirror of
https://github.com/polybar/polybar.git
synced 2026-03-11 02:35:06 +00:00
refactor: Move all event handling to the controller
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
#include <thread>
|
||||
|
||||
#include "components/config.hpp"
|
||||
#include "components/eventloop.hpp"
|
||||
#include "components/logger.hpp"
|
||||
#include "components/screen.hpp"
|
||||
#include "components/types.hpp"
|
||||
@ -14,7 +13,7 @@
|
||||
|
||||
POLYBAR_NS
|
||||
|
||||
using namespace signals::eventloop;
|
||||
using namespace signals::eventqueue;
|
||||
|
||||
/**
|
||||
* Create instance
|
||||
@ -107,7 +106,7 @@ void screen::handle(const evt::randr_screen_change_notify& evt) {
|
||||
}
|
||||
|
||||
m_log.warn("randr_screen_change_notify (%ux%u)... reloading", evt->width, evt->height);
|
||||
m_sig.emit(process_quit{eventloop::make_quit_evt(true)});
|
||||
m_sig.emit(process_quit{make_quit_evt(true)});
|
||||
m_sigraised = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user