From 9a833a3e1fe67487b8523bcbb472cc215b043d93 Mon Sep 17 00:00:00 2001 From: Jason Creighton Date: Tue, 10 Jul 2007 06:26:31 +0200 Subject: restore focus to currently focused window after "float" (closes #32) darcs-hash:20070710042631-b9aa7-d7c3a5dfef1c7495f9c96fc16af8374a495a9cb9 --- Operations.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Operations.hs b/Operations.hs index 68524f1..d5a5d3e 100644 --- a/Operations.hs +++ b/Operations.hs @@ -487,7 +487,7 @@ float w = withDisplay $ \d -> do sw = W.tag . W.workspace $ sc bw = fi . wa_border_width $ wa - windows $ W.shift sw . W.focusWindow w . W.float w + windows $ maybe id W.focusWindow (W.peek ws) . W.shift sw . W.focusWindow w . W.float w (W.RationalRect ((fi (wa_x wa) - fi (rect_x sr)) % fi (rect_width sr)) ((fi (wa_y wa) - fi (rect_y sr)) % fi (rect_height sr)) (fi (wa_width wa + bw*2) % fi (rect_width sr)) -- cgit v1.2.3