Hyprland/src/events/Events.hpp

68 lines
1.5 KiB
C++
Raw Normal View History

2022-03-16 21:37:21 +01:00
#pragma once
#include "../defines.hpp"
2022-03-27 17:25:20 +02:00
//
// LISTEN_NAME -> the wl_listener
//
// LISTENER_NAME -> the wl_listener.notify function
//
2022-03-16 21:37:21 +01:00
namespace Events {
2022-03-18 20:03:39 +01:00
// Monitor events
2022-03-16 21:37:21 +01:00
LISTENER(change);
LISTENER(newOutput);
2022-03-17 20:22:29 +01:00
// DRM events
LISTENER(leaseRequest);
2022-03-18 20:03:39 +01:00
// Layer events
2022-03-16 21:37:21 +01:00
LISTENER(newLayerSurface);
2022-03-17 20:22:29 +01:00
2022-03-18 20:03:39 +01:00
// Window events
2022-03-28 22:31:39 +02:00
DYNLISTENFUNC(commitWindow);
DYNLISTENFUNC(mapWindow);
DYNLISTENFUNC(unmapWindow);
DYNLISTENFUNC(destroyWindow);
DYNLISTENFUNC(setTitleWindow);
DYNLISTENFUNC(fullscreenWindow);
DYNLISTENFUNC(activateX11);
DYNLISTENFUNC(configureX11);
2022-07-08 11:24:07 +02:00
DYNLISTENFUNC(unmanagedSetGeometry);
2022-07-16 00:11:21 +02:00
DYNLISTENFUNC(requestMove);
DYNLISTENFUNC(requestResize);
DYNLISTENFUNC(requestMinimize);
DYNLISTENFUNC(requestMaximize);
DYNLISTENFUNC(setOverrideRedirect);
DYNLISTENFUNC(ackConfigure);
2022-03-17 20:22:29 +01:00
2022-03-16 21:37:21 +01:00
LISTENER(newInput);
2022-03-17 20:55:04 +01:00
2022-05-12 12:13:02 +02:00
// Virt Ptr
LISTENER(newVirtPtr);
2022-09-25 20:07:48 +02:00
2022-03-18 20:03:39 +01:00
// Various
2022-03-16 21:37:21 +01:00
LISTENER(requestSetSel);
LISTENER(requestSetPrimarySel);
2022-03-18 20:03:39 +01:00
// Monitor part 2 the sequel
2022-03-28 22:31:39 +02:00
DYNLISTENFUNC(monitorFrame);
DYNLISTENFUNC(monitorDestroy);
2022-11-19 17:28:04 +01:00
DYNLISTENFUNC(monitorStateRequest);
DYNLISTENFUNC(monitorDamage);
2023-04-07 18:25:56 +02:00
DYNLISTENFUNC(monitorNeedsFrame);
2023-04-12 22:40:51 +02:00
DYNLISTENFUNC(monitorCommit);
DYNLISTENFUNC(monitorBind);
2022-03-18 20:03:39 +01:00
// XWayland
LISTENER(surfaceXWayland);
// Renderer destroy
LISTENER(RendererDestroy);
2022-07-16 16:12:31 +02:00
// session
LISTENER(sessionActive);
2023-02-03 12:58:55 +01:00
// Session Lock
LISTENER(newSessionLock);
2022-09-25 20:07:48 +02:00
};