aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-29 16:43:24 +0100
committerVaxry <[email protected]>2024-04-29 16:43:24 +0100
commit86133983a94a6ad52933e0577b6098dd8e98ed8c (patch)
tree1e67217491872e660d0ced50f34f085920edd8a1 /src/events/Windows.cpp
parent39595aaca3c16cc483dcaacdebaecc24c952246b (diff)
downloadHyprland-86133983a94a6ad52933e0577b6098dd8e98ed8c.tar.gz
Hyprland-86133983a94a6ad52933e0577b6098dd8e98ed8c.zip
xdg-activation: move to new impl
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 53539eee..eb8514b4 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -1015,22 +1015,6 @@ void Events::listener_fullscreenWindow(void* owner, void* data) {
Debug::log(LOG, "{} fullscreen to {}", PWINDOW, PWINDOW->m_bIsFullscreen);
}
-void Events::listener_activateXDG(wl_listener* listener, void* data) {
- const auto E = (wlr_xdg_activation_v1_request_activate_event*)data;
-
- Debug::log(LOG, "Activate request for surface at {:x}", (uintptr_t)E->surface);
-
- if (!wlr_xdg_surface_try_from_wlr_surface(E->surface))
- return;
-
- const auto PWINDOW = g_pCompositor->getWindowFromSurface(E->surface);
-
- if (!PWINDOW || PWINDOW == g_pCompositor->m_pLastWindow.lock() || (PWINDOW->m_eSuppressedEvents & SUPPRESS_ACTIVATE))
- return;
-
- PWINDOW->activate();
-}
-
void Events::listener_activateX11(void* owner, void* data) {
PHLWINDOW PWINDOW = ((CWindow*)owner)->m_pSelf.lock();