02ebb8e52351db7599cbd63e614323c69f769e89
- Author
- outfoxxed <outfoxxed@outfoxxed.me>
- Committer
- outfoxxed <outfoxxed@outfoxxed.me>
- Date
Message
do not store window floating geometry on fullscreen request if maximized
Diff
1diff --git a/CHANGELOG.md b/CHANGELOG.md
2index bd12816c474bc586f1daf8411ba51531bcc53f40..10bb0aad7a05f783f03b6be6853a7df98117d0dc 100644
3--- a/CHANGELOG.md
4+++ b/CHANGELOG.md
5@@ -5,6 +5,7 @@
6 - Added configurable borders and blurred backgrounds to tabs.
7 - Renamed `hy3:tabs:rounding` to `hy3:tabs:radius`.
8 - Changed default tab style.
9+- Fixed floating windows losing their size after maximizing and then going into fullscreen.
10
11 # hl0.46.0 and before
12
13diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
14index 375877df4f8bc24f3cb219ff0177c43a51c668a7..d3c14d6b473660a826a0ad3345d6ac64b63a96a8 100644
15--- a/src/Hy3Layout.cpp
16+++ b/src/Hy3Layout.cpp
17@@ -538,7 +538,7 @@ void Hy3Layout::fullscreenRequestForWindow(
18 }
19 } else {
20 // save position and size if floating
21- if (window->m_bIsFloating) {
22+ if (window->m_bIsFloating && current_mode == FSMODE_NONE) {
23 window->m_vLastFloatingPosition = window->m_vRealPosition->goal();
24 window->m_vPosition = window->m_vRealPosition->goal();
25 window->m_vLastFloatingSize = window->m_vRealSize->goal();