mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-18 19:10:21 -07:00
Pass 0 to setClientMessageEvent where appropriate
Stop pretending it has anything to do with time, it's zero, and it's not being read anywhere, we're passing the parameter only because setClientMessageEvent needs one. We should switch to setClientMessageEvent' and pass no data, but that would move the X11 dependency lower bound.
This commit is contained in:
parent
a7bb1a776a
commit
eb752b15d8
@ -41,7 +41,7 @@ startTimer s = io $ do
|
||||
a <- internAtom d "XMONAD_TIMER" False
|
||||
allocaXEvent $ \e -> do
|
||||
setEventType e clientMessage
|
||||
setClientMessageEvent e rw a 32 (fromIntegral u) currentTime
|
||||
setClientMessageEvent e rw a 32 (fromIntegral u) 0
|
||||
sendEvent d rw False structureNotifyMask e
|
||||
sync d False
|
||||
return u
|
||||
|
@ -48,7 +48,7 @@ sendCommand addr s = do
|
||||
m <- internAtom d s False
|
||||
allocaXEvent $ \e -> do
|
||||
setEventType e clientMessage
|
||||
setClientMessageEvent e rw a 32 m currentTime
|
||||
setClientMessageEvent e rw a 32 m 0
|
||||
sendEvent d rw False structureNotifyMask e
|
||||
sync d False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user