Hypr/src/events/events.hpp
vaxerski f32c0abcf2 Fixed #9 #7 and #8
Alongside with the 2 previous commits.
2021-11-30 17:08:52 +01:00

31 lines
No EOL
735 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);
// 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;
};