diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-11-24 10:54:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-24 10:54:21 +0000 |
| commit | 2ebfd0c7456eff7e9c03d379d1dfbc611dc26672 (patch) | |
| tree | 9fa0d65224283e717ef7a06bb60870a5d319e13e /src/events | |
| parent | e40e486f61f2643578b9977b86f408799dbc75fd (diff) | |
renderer: Move to a full Hyprland GL rendering pipeline (#3920)
Also updates wlroots
Diffstat (limited to 'src/events')
| -rw-r--r-- | src/events/Events.hpp | 6 | ||||
| -rw-r--r-- | src/events/Misc.cpp | 14 | ||||
| -rw-r--r-- | src/events/Windows.cpp | 2 |
3 files changed, 2 insertions, 20 deletions
diff --git a/src/events/Events.hpp b/src/events/Events.hpp index 371586cc..777bdf9f 100644 --- a/src/events/Events.hpp +++ b/src/events/Events.hpp @@ -42,7 +42,7 @@ namespace Events { DYNLISTENFUNC(repositionPopupXDG); // Surface XDG (window) - LISTENER(newXDGSurface); + LISTENER(newXDGToplevel); LISTENER(activateXDG); // Window events @@ -121,10 +121,6 @@ namespace Events { DYNLISTENFUNC(destroyDragIcon); DYNLISTENFUNC(commitDragIcon); - // Inhibit - LISTENER(InhibitActivate); - LISTENER(InhibitDeactivate); - // Deco XDG LISTENER(NewXDGDeco); diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp index 1df4be3a..91a0ebda 100644 --- a/src/events/Misc.cpp +++ b/src/events/Misc.cpp @@ -156,20 +156,6 @@ void Events::listener_commitDragIcon(void* owner, void* data) { Debug::log(LOG, "Drag icon committed."); } -void Events::listener_InhibitActivate(wl_listener* listener, void* data) { - Debug::log(LOG, "Activated exclusive for {:x}.", (uintptr_t)g_pCompositor->m_sSeat.exclusiveClient); - - g_pInputManager->refocus(); - g_pCompositor->m_sSeat.exclusiveClient = g_pCompositor->m_sWLRInhibitMgr->active_client; -} - -void Events::listener_InhibitDeactivate(wl_listener* listener, void* data) { - Debug::log(LOG, "Deactivated exclusive."); - - g_pCompositor->m_sSeat.exclusiveClient = nullptr; - g_pInputManager->refocus(); -} - void Events::listener_RendererDestroy(wl_listener* listener, void* data) { Debug::log(LOG, "!!Renderer destroyed!!"); } diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 39678154..556ec1b5 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -1169,7 +1169,7 @@ void Events::listener_surfaceXWayland(wl_listener* listener, void* data) { PNEWWINDOW->hyprListener_configureX11.initCallback(&XWSURFACE->events.request_configure, &Events::listener_configureX11, PNEWWINDOW, "XWayland Window"); } -void Events::listener_newXDGSurface(wl_listener* listener, void* data) { +void Events::listener_newXDGToplevel(wl_listener* listener, void* data) { // A window got opened const auto XDGSURFACE = (wlr_xdg_surface*)data; |
