diff options
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | src/Xmobar/X11/Draw.hs | 2 | ||||
-rw-r--r-- | src/Xmobar/X11/Window.hs | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 072932e..0f24ebf 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,7 @@ _Bug fixes_ - Revert the double-UTF-8 encoding workarounds of 0.36 (#482), as they're no longer necessary with xmonad-contrib master, and aren't needed with any released version of xmonad-contrib either. + - Fix slow reactions to SIGUSR1/2 signals (reposition, change screen). ## Version 0.37 (November, 2020) diff --git a/src/Xmobar/X11/Draw.hs b/src/Xmobar/X11/Draw.hs index 6c00ee6..6044eff 100644 --- a/src/Xmobar/X11/Draw.hs +++ b/src/Xmobar/X11/Draw.hs @@ -89,7 +89,7 @@ drawInWin wr@(Rectangle _ _ wid ht) ~[left,center,right] = do liftIO $ freeGC d gc liftIO $ freePixmap d p -- resync - liftIO $ sync d True + liftIO $ sync d False verticalOffset :: (Integral b, Integral a, MonadIO m) => a -> Widget -> XFont -> Int -> Config -> m b diff --git a/src/Xmobar/X11/Window.hs b/src/Xmobar/X11/Window.hs index 796e213..6de8e66 100644 --- a/src/Xmobar/X11/Window.hs +++ b/src/Xmobar/X11/Window.hs @@ -69,6 +69,7 @@ repositionWin d win fs c = do r = setPosition c (position c) srs (fromIntegral ht) moveResizeWindow d win (rect_x r) (rect_y r) (rect_width r) (rect_height r) setStruts r c d win srs + sync d False return r fi :: (Integral a, Num b) => a -> b |