2021-11-21 11:25:26 +01:00
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
#include <thread>
|
|
|
|
|
2021-11-18 18:04:09 +01:00
|
|
|
#include "../windowManager.hpp"
|
|
|
|
|
|
|
|
namespace Events {
|
|
|
|
EVENT(Enter);
|
2021-11-18 22:08:28 +01:00
|
|
|
EVENT(Leave);
|
2021-11-18 18:04:09 +01:00
|
|
|
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;
|
2021-11-18 18:04:09 +01:00
|
|
|
};
|