diff --git a/docs/features/windows/README.md b/docs/features/windows/README.md index 44cc6c1..68eb775 100644 --- a/docs/features/windows/README.md +++ b/docs/features/windows/README.md @@ -8,6 +8,6 @@ The windows components are used to view and interact with running applications. - [x] Maximize (fullscreen) - [ ] Minimize -- [x] Resize +- [ ] Resize - [x] Multiple windows of the same app -- [ ] Draw order \ No newline at end of file +- [x] Draw order \ No newline at end of file diff --git a/src/components/windows/Window.jsx b/src/components/windows/Window.jsx index 4570360..683ab49 100644 --- a/src/components/windows/Window.jsx +++ b/src/components/windows/Window.jsx @@ -7,7 +7,7 @@ import { useWindowsManager } from "../../hooks/windows/WindowsManagerContext.js" import Draggable from "react-draggable"; import { useEffect, useRef, useState } from "react"; -export function Window({ id, app, size, position, focused = false }) { +export function Window({ id, app, size, position, focused = false, onInteract }) { const windowsManager = useWindowsManager(); const nodeRef = useRef(null); const [maximized, setMaximized] = useState(false); @@ -47,6 +47,7 @@ export function Window({ id, app, size, position, focused = false }) { cancel="button" nodeRef={nodeRef} disabled={maximized} + onMouseDown={onInteract} >