Hypr/src/events/events.hpp

31 lines
735 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);
EVENT(UnmapWindow);
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, int forcemonitor = -1);
CWindow* remapFloatingWindow(int, int forcemonitor = -1);
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;
// For docks etc
inline bool nextWindowCentered = false;
};