diff --git a/src/components/client-windows.tsx b/src/components/client-windows.tsx index b51c226..a2d8ad5 100644 --- a/src/components/client-windows.tsx +++ b/src/components/client-windows.tsx @@ -8,12 +8,16 @@ import React, { useState, useRef, useEffect, useReducer } from "react"; export const RestoreWindowsButton = ({ onClick, className, ...props}: React.ComponentProps<"button">) => { const windowManager = useWindowManager(); - const isAnyWindowsClosed = !windowManager.windows.find(w => w.closed == true); + const isWindowsDataDirty = !windowManager.windows.find(w => + w.closed == true + || w.minimized == true + || (w.offset.x != 0 && w.offset.y != 0) + ) return (