Hypr/src/events/events.hpp
2021-12-22 14:53:53 +01:00

34 lines
No EOL
792 B
C++

#include <inttypes.h>
#include <thread>
#include "../windowManager.hpp"
namespace Events {
EVENT(Enter);
EVENT(Leave);
EVENT(Destroy);
EVENT(MapWindow);
EVENT(UnmapWindow);
EVENT(ButtonPress);
EVENT(ButtonRelease);
EVENT(Expose);
EVENT(KeyPress);
EVENT(MotionNotify);
EVENT(ClientMessage);
EVENT(RandRScreenChange);
// Bypass some events for floating windows
CWindow* remapWindow(int, bool floating = false, int forcemonitor = -1);
CWindow* remapFloatingWindow(int, int forcemonitor = -1);
// A thread to notify xcb to redraw our shiz
void redraw();
void setThread();
inline timer_t timerid;
// For docks etc
inline bool nextWindowCentered = false;
};