Java GUI applications only give me a blank window, I tried:
main = do
xmonad $ defaultConfig
{ modMask = mod4Mask
, startupHook = setWMName "LG3D"
-- other customizations
}
and setting this:
_JAVA_AWT_WM_NONREPARENTING=1
and this:
AWT_TOOLKIT=MToolkit
and I tried using "wmname" suckless tools. None of those methods worked for me. Two questions:
I use java 8 and below is my currently minimal xmonad config.
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")
]
so finally I found out it is:
borderWidth = 0,
after disabling this setting or setting it to any positive value everything works like a charm.
--this works
borderWidth = [any positive value],
--for example
borderWidth = 1,
Sorry for bothering you guys. I hope the information can help anyone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With