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-30 17:08:52 +01:00
|
|
|
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
|
2021-11-25 17:44:46 +01:00
|
|
|
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;
|
2021-11-28 16:14:12 +01:00
|
|
|
|
|
|
|
// For docks etc
|
|
|
|
inline bool nextWindowCentered = false;
|
2021-11-18 18:04:09 +01:00
|
|
|
};
|