diff options
Diffstat (limited to '')
-rw-r--r-- | DragPane.hs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/DragPane.hs b/DragPane.hs index 20d42e8..332947f 100644 --- a/DragPane.hs +++ b/DragPane.hs @@ -59,10 +59,8 @@ data DragPane a = data DragType = Horizontal | Vertical deriving ( Show, Read ) instance Layout DragPane Window where - doLayout d@(DragPane _ ty _ _) = - case ty of - Vertical -> doLay id d - Horizontal -> doLay mirrorRect d + doLayout d@(DragPane _ Vertical _ _) = doLay id d + doLayout d@(DragPane _ Horizontal _ _) = doLay mirrorRect d handleMessage = handleMess data SetFrac = SetFrac Int Double deriving ( Show, Read, Eq, Typeable ) |