mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 10:43:40 +01:00
fix: emit fullscreen event and update window rules+decos on fullscreen
This commit is contained in:
parent
3025a015ea
commit
2728dbed6a
2 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
# Upcoming
|
||||
- Fixed IPC and wlr-foreign-toplevel not getting fullscreen and maximize events.
|
||||
|
||||
## hl0.40.0 and before
|
||||
|
||||
- Added `hy3:warpcursor` dispatcher to warp cursor to current node.
|
||||
|
|
|
@ -503,6 +503,12 @@ void Hy3Layout::fullscreenRequestForWindow(
|
|||
window->m_bIsFullscreen = on;
|
||||
window->m_pWorkspace->m_bHasFullscreenWindow = !window->m_pWorkspace->m_bHasFullscreenWindow;
|
||||
|
||||
window->updateDynamicRules();
|
||||
window->updateWindowDecos();
|
||||
|
||||
g_pEventManager->postEvent(SHyprIPCEvent {"fullscreen", std::to_string((int) on)});
|
||||
EMIT_HOOK_EVENT("fullscreen", window);
|
||||
|
||||
if (!window->m_bIsFullscreen) {
|
||||
auto* node = this->getNodeFromWindow(window);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue