mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 08:30:22 -07:00
protocols: simulate mouse movement after activating a toplevel (#10429)
This commit is contained in:
parent
a5c9b3e490
commit
b0cc49218d
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user