mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
-Wall police
This commit is contained in:
parent
6dcd66f16e
commit
6a273c2afa
2
Main.hs
2
Main.hs
@ -194,7 +194,7 @@ handle e@(ButtonEvent {ev_event_type = t})
|
||||
Nothing -> broadcastMessage e
|
||||
|
||||
-- handle motionNotify event, which may mean we are dragging.
|
||||
handle e@(MotionEvent {ev_event_type = t, ev_x = x, ev_y = y}) = do
|
||||
handle e@(MotionEvent {ev_event_type = _t, ev_x = x, ev_y = y}) = do
|
||||
drag <- gets dragging
|
||||
case drag of
|
||||
Just (d,_) -> d (fromIntegral x) (fromIntegral y) -- we're dragging
|
||||
|
Loading…
x
Reference in New Issue
Block a user