Hypr/src/events/events.hpp

27 lines
595 B
C++
Raw Normal View History

2021-11-21 11:25:26 +01:00
#include <inttypes.h>
#include <thread>
#include "../windowManager.hpp"
namespace Events {
EVENT(Enter);
2021-11-18 22:08:28 +01:00
EVENT(Leave);
EVENT(Destroy);
EVENT(MapWindow);
2021-11-21 15:25:57 +01:00
EVENT(ButtonPress);
2021-11-22 21:20:32 +01:00
EVENT(ButtonRelease);
2021-11-21 11:25:26 +01:00
EVENT(Expose);
2021-11-21 15:25:57 +01:00
EVENT(KeyPress);
2021-11-22 21:20:32 +01:00
EVENT(MotionNotify);
// Bypass some events for floating windows
CWindow* remapWindow(int, bool floating = false);
2021-11-23 22:15:36 +01:00
CWindow* remapFloatingWindow(int);
2021-11-21 11:25:26 +01:00
// A thread to notify xcb to redraw our shiz
void redraw();
void setThread();
inline timer_t timerid;
};