Using EwmhDesktops with IntelliJ (or maybe any Java Swing app?)

Does anyone have this working? I have two modes I manually flip between now: 1) myConfig = ewmh defaultConfig [...snip...] With this, I get normal desktop hints such as opening links will focus my browser, apps like Shutter that take full screen images work, etc. However, if I launch IntelliJ it opens as plain background and never "loads" any of the UI. If I Mod+Shift+C it, the exit dialogue does popup, so it is running and does respond to something. 2) myConfig = defaultConfig [...snip...] Without ewmh, I don't get browser focus, Shutter can't take desktop screenshots, but IntelliJ works flawlessly. Does anyone have a fix for this, even a hack? Maybe some way to run ewmh but blacklist IntelliJ "out" of it? Thanks! Brett

I forgot to include my full config in case it's helpful:
https://github.com/bretthoerner/dotfiles/blob/master/.xmonad__xmonad.hs
On Thu, May 2, 2013 at 8:54 AM, Brett Hoerner
Does anyone have this working?
I have two modes I manually flip between now:
1) myConfig = ewmh defaultConfig [...snip...] With this, I get normal desktop hints such as opening links will focus my browser, apps like Shutter that take full screen images work, etc. However, if I launch IntelliJ it opens as plain background and never "loads" any of the UI. If I Mod+Shift+C it, the exit dialogue does popup, so it is running and does respond to something.
2) myConfig = defaultConfig [...snip...] Without ewmh, I don't get browser focus, Shutter can't take desktop screenshots, but IntelliJ works flawlessly.
Does anyone have a fix for this, even a hack? Maybe some way to run ewmh but blacklist IntelliJ "out" of it?
Thanks! Brett

On Thu, May 2, 2013 at 9:54 AM, Brett Hoerner
1) myConfig = ewmh defaultConfig [...snip...] With this, I get normal desktop hints such as opening links will focus my browser, apps like Shutter that take full screen images work, etc. However, if I launch IntelliJ it opens as plain background and never "loads" any of the UI. If I Mod+Shift+C it, the exit dialogue does popup, so it is running and does respond to something.
2) myConfig = defaultConfig [...snip...] Without ewmh, I don't get browser focus, Shutter can't take desktop screenshots, but IntelliJ works flawlessly.
Does anyone have a fix for this, even a hack? Maybe some way to run ewmh but blacklist IntelliJ "out" of it?
Supporting EWMH for only some programs is like being a little bit pregnant. It's global settings, not per window or per application. That said, you might want to look at http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Problem... in particular http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Using_S... see how to make Java almost behave sanely. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Thank you, I had most of those but the trick seems to be making sure you
set your WM to LG3D *after* ewmh does it's thing. At least that seems to
help.
Now I just have to find out how to merge that hack with some other
configuration I wanted (off to Haskell docs). :)
On Thu, May 2, 2013 at 9:05 AM, Brandon Allbery
On Thu, May 2, 2013 at 9:54 AM, Brett Hoerner
wrote: 1) myConfig = ewmh defaultConfig [...snip...] With this, I get normal desktop hints such as opening links will focus my browser, apps like Shutter that take full screen images work, etc. However, if I launch IntelliJ it opens as plain background and never "loads" any of the UI. If I Mod+Shift+C it, the exit dialogue does popup, so it is running and does respond to something.
2) myConfig = defaultConfig [...snip...] Without ewmh, I don't get browser focus, Shutter can't take desktop screenshots, but IntelliJ works flawlessly.
Does anyone have a fix for this, even a hack? Maybe some way to run ewmh but blacklist IntelliJ "out" of it?
Supporting EWMH for only some programs is like being a little bit pregnant. It's global settings, not per window or per application.
That said, you might want to look at http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Problem... in particular http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Using_S... see how to make Java almost behave sanely.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Thu, May 2, 2013 at 11:08 AM, Brett Hoerner
Thank you, I had most of those but the trick seems to be making sure you set your WM to LG3D *after* ewmh does it's thing. At least that seems to help.
Yes, because ewmh forces the WM name and the combinator form does so after all of your code. I'd like to see a better way to do that, possibly another combinator. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (2)
-
Brandon Allbery
-
Brett Hoerner