mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
use a record pattern to be robust against additions to the X11 library
This commit is contained in:
@@ -41,7 +41,15 @@ debugWindow w = do
|
||||
case w' of
|
||||
Nothing ->
|
||||
return $ "(deleted window " ++ wx ++ ")"
|
||||
Just (WindowAttributes x y wid ht bw m o) -> do
|
||||
Just (WindowAttributes
|
||||
{ wa_x = x
|
||||
, wa_y = y
|
||||
, wa_width = wid
|
||||
, wa_height = ht
|
||||
, wa_border_width = bw
|
||||
, wa_map_state = m
|
||||
, wa_override_redirect = o
|
||||
}) -> do
|
||||
c' <- withDisplay $ \d ->
|
||||
io (getWindowProperty8 d wM_CLASS w)
|
||||
let c = case c' of
|
||||
|
Reference in New Issue
Block a user