refactor(x11): Header cleanup
This commit is contained in:
parent
11aabac227
commit
00ac4bea63
@ -4,11 +4,11 @@
|
||||
#include <thread>
|
||||
|
||||
#include "common.hpp"
|
||||
#include "config.hpp"
|
||||
#include "events/signal_fwd.hpp"
|
||||
#include "events/signal_receiver.hpp"
|
||||
#include "events/types.hpp"
|
||||
#include "x11/types.hpp"
|
||||
#include "x11/events.hpp"
|
||||
|
||||
POLYBAR_NS
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include "common.hpp"
|
||||
#include "components/types.hpp"
|
||||
#include "events/signal_emitter.hpp"
|
||||
#include "events/signal_fwd.hpp"
|
||||
#include "events/signal_receiver.hpp"
|
||||
#include "x11/extensions/fwd.hpp"
|
||||
@ -15,6 +14,7 @@ POLYBAR_NS
|
||||
class connection;
|
||||
class font_manager;
|
||||
class logger;
|
||||
class signal_emitter;
|
||||
|
||||
using namespace signals::parser;
|
||||
using std::map;
|
||||
|
@ -1,11 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "common.hpp"
|
||||
#include "components/config.hpp"
|
||||
#include "components/logger.hpp"
|
||||
#include "components/types.hpp"
|
||||
#include "events/signal_emitter.hpp"
|
||||
#include "events/signal_fwd.hpp"
|
||||
#include "x11/events.hpp"
|
||||
#include "x11/extensions/fwd.hpp"
|
||||
#include "x11/types.hpp"
|
||||
#include "x11/window.hpp"
|
||||
|
||||
POLYBAR_NS
|
||||
|
@ -1,14 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <xpp/core.hpp>
|
||||
#include <xpp/event.hpp>
|
||||
#include <xpp/generic/factory.hpp>
|
||||
#include <xpp/proto/x.hpp>
|
||||
|
||||
#include "common.hpp"
|
||||
#include "components/screen.hpp"
|
||||
#include "utils/file.hpp"
|
||||
#include "x11/events.hpp"
|
||||
#include "x11/extensions/all.hpp"
|
||||
#include "x11/registry.hpp"
|
||||
#include "x11/types.hpp"
|
||||
|
||||
POLYBAR_NS
|
||||
|
||||
@ -71,7 +73,7 @@ namespace detail {
|
||||
} catch (const shared_ptr<xcb_generic_error_t>& error) {
|
||||
check<xpp::x::extension, Extensions...>(error);
|
||||
}
|
||||
throw; // re-throw any exception caused by wait_for_event
|
||||
throw; // re-throw exception
|
||||
}
|
||||
|
||||
shared_ptr<xcb_generic_event_t> wait_for_special_event(xcb_special_event_t* se) const {
|
||||
@ -80,7 +82,7 @@ namespace detail {
|
||||
} catch (const shared_ptr<xcb_generic_error_t>& error) {
|
||||
check<xpp::x::extension, Extensions...>(error);
|
||||
}
|
||||
throw; // re-throw any exception caused by wait_for_event
|
||||
throw; // re-throw exception
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -1,8 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "config.hpp"
|
||||
|
||||
#include <xpp/xpp.hpp>
|
||||
#include <xpp/event.hpp>
|
||||
|
||||
#include "common.hpp"
|
||||
|
||||
|
@ -17,6 +17,10 @@ namespace xpp {
|
||||
class font;
|
||||
template <typename Connection, template <typename, typename> class...>
|
||||
class cursor;
|
||||
namespace event {
|
||||
template <class Event, class... Events>
|
||||
class sink;
|
||||
}
|
||||
}
|
||||
|
||||
POLYBAR_NS
|
||||
|
@ -17,9 +17,8 @@
|
||||
#include "utils/math.hpp"
|
||||
#include "utils/string.hpp"
|
||||
#include "x11/atoms.hpp"
|
||||
#include "x11/extensions/all.hpp"
|
||||
#include "x11/connection.hpp"
|
||||
#include "x11/fonts.hpp"
|
||||
#include "x11/extensions/all.hpp"
|
||||
#include "x11/tray_manager.hpp"
|
||||
#include "x11/wm.hpp"
|
||||
#include "x11/xutils.hpp"
|
||||
|
@ -1,13 +1,12 @@
|
||||
#include "components/renderer.hpp"
|
||||
#include "components/logger.hpp"
|
||||
#include "components/types.hpp"
|
||||
#include "errors.hpp"
|
||||
#include "events/signal.hpp"
|
||||
#include "events/signal_receiver.hpp"
|
||||
#include "events/signal_emitter.hpp"
|
||||
#include "events/signal_receiver.hpp"
|
||||
#include "x11/connection.hpp"
|
||||
#include "x11/draw.hpp"
|
||||
#include "x11/fonts.hpp"
|
||||
#include "x11/extensions/all.hpp"
|
||||
#include "x11/generic.hpp"
|
||||
#include "x11/winspec.hpp"
|
||||
#include "x11/xlib.hpp"
|
||||
|
@ -8,7 +8,10 @@
|
||||
#include "events/signal.hpp"
|
||||
#include "events/signal_emitter.hpp"
|
||||
#include "x11/connection.hpp"
|
||||
#include "x11/extensions/randr.hpp"
|
||||
#include "x11/events.hpp"
|
||||
#include "x11/extensions/all.hpp"
|
||||
#include "x11/registry.hpp"
|
||||
#include "x11/types.hpp"
|
||||
#include "x11/winspec.hpp"
|
||||
|
||||
POLYBAR_NS
|
||||
|
@ -85,7 +85,6 @@ int main(int argc, char** argv) {
|
||||
conn.query_extensions();
|
||||
conn.ensure_event_mask(conn.root(), XCB_EVENT_MASK_PROPERTY_CHANGE);
|
||||
|
||||
|
||||
//==================================================
|
||||
// Load user configuration
|
||||
//==================================================
|
||||
|
@ -1,4 +0,0 @@
|
||||
#include <xpp/event.hpp>
|
||||
#include <xpp/proto/x.hpp>
|
||||
|
||||
#include "x11/events.hpp"
|
Loading…
Reference in New Issue
Block a user