commit 1efad7ba579c17f2c04954f28595a4c49416eaa4
parent 8d24c46d17ae8ca9ddfa32ccc63abfe36637719e
Author: mcol <mcol@posteo.net>
Date: Tue, 30 Jun 2020 20:59:26 +0100
focus window upon first click
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/features/windows/index.js b/src/features/windows/index.js
@@ -46,6 +46,9 @@ export default function Windows() {
position={{
x: position.x, y: position.y
}}
+ onDragStart={
+ () => setFocus(id)
+ }
onDragStop={
(e, d) => {dispatch(dragWindow({id: id, x: d.x, y: d.y}))}
}