packages feed

vty 5.11.1 → 5.11.2

raw patch · 3 files changed

+7/−3 lines, 3 files

Files

CHANGELOG view
@@ -1,3 +1,7 @@+5.11.2+  - Mouse events were modified so that the upper-left corner of the window is+    (0,0) rather than (1,1).+ 5.11.1   - Add Generic instance for Image   - nextEvent: stop trying to refresh on a resize event (fixes segfault
src/Graphics/Vty/Input/Mouse.hs view
@@ -129,7 +129,7 @@     case press of             True -> do                 button <- getSGRButton status-                return $ EvMouseDown xCoord yCoord button modifiers+                return $ EvMouseDown (xCoord-1) (yCoord-1) button modifiers             False -> return $ EvMouseUp xCoord yCoord Nothing  -- Attempt to classify a control sequence as an SGR mouse event. To@@ -147,6 +147,6 @@     let modifiers = getModifiers mods     button <- getSGRButton mods     case final of-        'M' -> return $ EvMouseDown xCoord yCoord button modifiers+        'M' -> return $ EvMouseDown (xCoord-1) (yCoord-1) button modifiers         'm' -> return $ EvMouseUp   xCoord yCoord (Just button)         _ -> failParse
vty.cabal view
@@ -1,5 +1,5 @@ name:                vty-version:             5.11.1+version:             5.11.2 license:             BSD3 license-file:        LICENSE author:              AUTHORS