mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-25 09:11:51 -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:
@@ -41,7 +41,7 @@ startTimer s = io $ do
|
|||||||
a <- internAtom d "XMONAD_TIMER" False
|
a <- internAtom d "XMONAD_TIMER" False
|
||||||
allocaXEvent $ \e -> do
|
allocaXEvent $ \e -> do
|
||||||
setEventType e clientMessage
|
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
|
sendEvent d rw False structureNotifyMask e
|
||||||
sync d False
|
sync d False
|
||||||
return u
|
return u
|
||||||
|
@@ -48,7 +48,7 @@ sendCommand addr s = do
|
|||||||
m <- internAtom d s False
|
m <- internAtom d s False
|
||||||
allocaXEvent $ \e -> do
|
allocaXEvent $ \e -> do
|
||||||
setEventType e clientMessage
|
setEventType e clientMessage
|
||||||
setClientMessageEvent e rw a 32 m currentTime
|
setClientMessageEvent e rw a 32 m 0
|
||||||
sendEvent d rw False structureNotifyMask e
|
sendEvent d rw False structureNotifyMask e
|
||||||
sync d False
|
sync d False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user