protocols: simulate mouse movement after activating a toplevel (#10429)

This commit is contained in:
outfoxxed 2025-05-16 14:38:45 -07:00 committed by GitHub
parent a5c9b3e490
commit b0cc49218d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
#include "ForeignToplevelWlr.hpp" #include "ForeignToplevelWlr.hpp"
#include <algorithm> #include <algorithm>
#include "../Compositor.hpp" #include "../Compositor.hpp"
#include "managers/input/InputManager.hpp"
#include "protocols/core/Output.hpp" #include "protocols/core/Output.hpp"
#include "render/Renderer.hpp" #include "render/Renderer.hpp"
#include "../managers/HookSystemManager.hpp" #include "../managers/HookSystemManager.hpp"
@ -24,6 +25,7 @@ CForeignToplevelHandleWlr::CForeignToplevelHandleWlr(SP<CZwlrForeignToplevelHand
// these requests bypass the config'd stuff cuz it's usually like // these requests bypass the config'd stuff cuz it's usually like
// window switchers and shit // window switchers and shit
PWINDOW->activate(true); PWINDOW->activate(true);
g_pInputManager->simulateMouseMovement();
}); });
m_resource->setSetFullscreen([this](CZwlrForeignToplevelHandleV1* p, wl_resource* output) { m_resource->setSetFullscreen([this](CZwlrForeignToplevelHandleV1* p, wl_resource* output) {