From 2cedbfe229a34f4c28b3c573480549013e3a6734 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Sun, 30 Mar 2008 11:15:37 +0200 Subject: Fix _NET_WM_STRUT_PARTIAL implementation darcs-hash:20080330091537-d6583-498d5b8e5cc38879490d04f97d0a59270964678a.gz --- Xmobar.hs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Xmobar.hs b/Xmobar.hs index 0aec276..594da82 100644 --- a/Xmobar.hs +++ b/Xmobar.hs @@ -172,11 +172,14 @@ setProperties r c d w = do getStrutValues :: Rectangle -> Config -> [Int] getStrutValues (Rectangle x _ w h) c = case position c of - Top -> [0, 0, fi h, 0 , 0, 0, 0, 0, fi x, fi (x + fi w), 0, 0 ] - TopW _ _ -> [0, 0, fi h, 0 , 0, 0, 0, 0, fi x, fi (x + fi w), 0, 0 ] - Bottom -> [0, 0, 0 , fi h, 0, 0, 0, 0, 0, 0, fi x, fi (x + fi w)] - BottomW _ _ -> [0, 0, 0 , fi h, 0, 0, 0, 0, 0, 0, fi x, fi (x + fi w)] - _ -> [0, 0, 0 , 0 , 0, 0, 0, 0, 0, 0, 0, 0 ] + Top -> [0, 0, nh, 0, 0, 0, 0, 0, nx, nw, 0, 0] + TopW _ _ -> [0, 0, nh, 0, 0, 0, 0, 0, nx, nw, 0, 0] + Bottom -> [0, 0, 0, nh, 0, 0, 0, 0, 0, 0, nx, nw] + BottomW _ _ -> [0, 0, 0, nh, 0, 0, 0, 0, 0, 0, nx, nw] + _ -> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + where nh = fi h + nx = fi x + nw = fi (x + fi w - 1) updateWin :: TVar String -> X () updateWin v = do -- cgit v1.2.3