mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-03-23 20:40:34 +01:00
hyprfocus: fix fullscreen windows not restoring original state
This commit is contained in:
parent
be3cbf60b4
commit
cdeca4aac7
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ static void onFocusChange(PHLWINDOW window) {
|
|||
w->m_realSize->setConfig(POUT);
|
||||
w->m_realPosition->setConfig(POUT);
|
||||
|
||||
if (w->m_isFloating) {
|
||||
if (w->m_isFloating || w->isFullscreen()) {
|
||||
*w->m_realPosition = ORIGINAL.pos();
|
||||
*w->m_realSize = ORIGINAL.size();
|
||||
} else
|
||||
|
|
@ -97,7 +97,7 @@ static void onFocusChange(PHLWINDOW window) {
|
|||
return;
|
||||
w->m_realPosition->setConfig(POUT);
|
||||
|
||||
if (w->m_isFloating)
|
||||
if (w->m_isFloating || w->isFullscreen())
|
||||
*w->m_realPosition = ORIGINAL;
|
||||
else
|
||||
g_pLayoutManager->getCurrentLayout()->recalculateWindow(w.lock());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue