mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 04:25:59 +01:00
parent
5eb33ff4d8
commit
4b74123649
1 changed files with 3 additions and 0 deletions
|
@ -2037,6 +2037,9 @@ void CKeybindManager::pinActive(std::string args) {
|
||||||
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID);
|
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID);
|
||||||
|
|
||||||
PWORKSPACE->m_pLastFocusedWindow = g_pCompositor->vectorToWindowUnified(g_pInputManager->getMouseCoordsInternal(), RESERVED_EXTENTS | INPUT_EXTENTS);
|
PWORKSPACE->m_pLastFocusedWindow = g_pCompositor->vectorToWindowUnified(g_pInputManager->getMouseCoordsInternal(), RESERVED_EXTENTS | INPUT_EXTENTS);
|
||||||
|
|
||||||
|
g_pEventManager->postEvent(SHyprIPCEvent{"pin", std::format("{:x},{}", (uintptr_t)PWINDOW, (int)PWINDOW->m_bPinned)});
|
||||||
|
EMIT_HOOK_EVENT("pin", PWINDOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CKeybindManager::mouse(std::string args) {
|
void CKeybindManager::mouse(std::string args) {
|
||||||
|
|
Loading…
Reference in a new issue