Java GUI applications give me a blank window, I tried:
main = do xmonad $ defaultConfig { modMask = mod4Mask , startupHook = setWMName "LG3D" -- other customizations }
and install this:
_JAVA_AWT_WM_NONREPARENTING=1
and this:
AWT_TOOLKIT=MToolkit
and I tried using the "wmname" utilities. None of these methods worked for me. Two questions:
- Is there any other possibility?
- What am I wrong?
I am using java 8, and below is my minimal xmonad configuration.
import XMonad import XMonad.Hooks.DynamicLog import XMonad.Hooks.SetWMName import XMonad.Hooks.ManageDocks import XMonad.Hooks.FadeInactive import XMonad.Util.Run(spawnPipe) import XMonad.Util.EZConfig(additionalKeys) import XMonad.Actions.UpdatePointer import XMonad.Hooks.EwmhDesktops import System.IO term = "termite" myWorkspaces = ["1","2","3","4","5"] myLogHook :: X () myLogHook = fadeInactiveLogHook fadeAmount where fadeAmount = 0.7 main = do xmonad $ defaultConfig { startupHook = setWMName "LG3D", manageHook = manageDocks <+> manageHook defaultConfig, layoutHook = avoidStruts $ layoutHook defaultConfig, logHook = dynamicLog >> updatePointer (0.5,0.5) (1,1) >> myLogHook, terminal = term, borderWidth = 0, focusFollowsMouse = False, workspaces = myWorkspaces }`additionalKeys`[ ((mod1Mask .|. shiftMask, xK_l), spawn "scrot 'lock.png' -q 1 -e 'mv $f /tmp/lock.png' && i3lock -I 1 -i /tmp/lock.png"), ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s"), ((0, xK_Print), spawn "scrot"), ((mod1Mask, xK_d), spawn "rofi -config /home/chrootzius/.config/rofi/config -show run") ]
java user-interface haskell swing xmonad
chrootzius
source share