]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
xmonad.hs: Fix for Java programs to recognize XMonad.
authorSimon Ruderich <simon@ruderich.org>
Mon, 21 Jun 2010 10:21:04 +0000 (12:21 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 21 Jun 2010 10:21:04 +0000 (12:21 +0200)
xmonad.hs

index 1a0b498bda873dcac90c8cc150ca74fb93110ca7..48d30bb4babcbb40d3ef467e6f259b22c6d89b15 100644 (file)
--- a/xmonad.hs
+++ b/xmonad.hs
@@ -16,6 +16,8 @@ import XMonad.Layout.NoBorders
 import XMonad.Hooks.ManageHelpers
 -- Necessary for `additionalKeys`.
 import XMonad.Util.EZConfig
+-- Necessary for setWMName.
+import XMonad.Hooks.SetWMName
 
 
 -- Prevent new windows from spawning in the master pane. Taken from
@@ -111,6 +113,8 @@ main = xmonad $ defaultConfig
     , manageHook = myManageHook
     -- Use unicode rxvt as my terminal.
     , terminal = "urxvt"
+    -- Necessary for java so it recognizes XMonad as tiling window manager.
+    , startupHook = setWMName "LG3D"
     }
     `additionalKeys` myKeys