mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Set WM_CLASS for created windows
Set the WM_CLASS property for long-living windows that need it. This helps users to properly match on these windows for certain tasks. Fixes: - https://github.com/xmonad/xmonad-contrib/issues/526 - https://github.com/xmonad/xmonad-contrib/issues/369
This commit is contained in:
@@ -317,7 +317,9 @@ treeselectAt conf@TSConfig{..} zipper hist = withDisplay $ \display -> do
|
||||
set_colormap attributes colormap
|
||||
set_background_pixel attributes ts_background
|
||||
set_border_pixel attributes 0
|
||||
createWindow display rootw rect_x rect_y rect_width rect_height 0 (visualInfo_depth vinfo) inputOutput (visualInfo_visual vinfo) (cWColormap .|. cWBorderPixel .|. cWBackPixel) attributes
|
||||
w <- createWindow display rootw rect_x rect_y rect_width rect_height 0 (visualInfo_depth vinfo) inputOutput (visualInfo_visual vinfo) (cWColormap .|. cWBorderPixel .|. cWBackPixel) attributes
|
||||
setClassHint display w (ClassHint "xmonad-tree_select" "xmonad")
|
||||
pure w
|
||||
|
||||
liftIO $ do
|
||||
-- TODO: move below?
|
||||
|
Reference in New Issue
Block a user