@@ -3051,13 +3051,18 @@ void CConfigManager::ensurePersistentWorkspacesPresent() {
30513051}
30523052
30533053void CConfigManager::storeFloatingSize (PHLWINDOW window, const Vector2D& size) {
3054- Debug::log (LOG, " storing floating size {}x{} for window {}::{}" , size.x , size.y , window->m_class , window->m_title );
3055- SFloatCache id{window};
3054+ Debug::log (LOG, " storing floating size {}x{} for window {}::{}" , size.x , size.y , window->m_initialClass , window->m_initialTitle );
3055+ // true -> use m_initialClass and m_initialTitle
3056+ SFloatCache id{window, true };
30563057 m_mStoredFloatingSizes[id] = size;
30573058}
30583059
30593060std::optional<Vector2D> CConfigManager::getStoredFloatingSize (PHLWINDOW window) {
3060- SFloatCache id{window};
3061+ // At startup, m_initialClass and m_initialTitle are undefined
3062+ // and m_class and m_title are just "initial" ones.
3063+ // false -> use m_class and m_title
3064+ SFloatCache id{window, false };
3065+ Debug::log (LOG, " Hash for window {}::{} = {}" , window->m_class , window->m_title , id.hash );
30613066 if (m_mStoredFloatingSizes.contains (id)) {
30623067 Debug::log (LOG, " got stored size {}x{} for window {}::{}" , m_mStoredFloatingSizes[id].x , m_mStoredFloatingSizes[id].y , window->m_class , window->m_title );
30633068 return m_mStoredFloatingSizes[id];
0 commit comments