codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

Redraw of Gnomeapps fails #559

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start Gnome3 Application 
2. Click a widget within that application

What is the expected output? What do you see instead?
Expected: The application should perform the requestet action and redraw the 
app with the results.

Displayed: The Gnome app performs the action but does not redraw the ui, when 
switching to another desktop and back the App shows the proper output.

What version of the product are you using? On what operating system?
- Gentoo hardened (Kernel 3.10.8 and 3.11.1)
- xmonad 0.11
- Gnome 3.8.4

Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".

Please provide any additional information below.

Original issue reported on code.google.com by dragonch...@gmail.com on 16 Sep 2013 at 2:46

GoogleCodeExporter commented 8 years ago
Is there a specific application which does this? GTK3 is working fine here 
(uzbl using webkitgtk3).

Original comment by MathStuf@gmail.com on 18 Sep 2013 at 3:16

GoogleCodeExporter commented 8 years ago
I have only a few apps I still use:
- pavucontrol
- gnome-control-center
- nm-applett
those are efected, strangly my haskell gui (leksah, which uses gtk afaik) works 
fine....

Original comment by dragonch...@gmail.com on 19 Sep 2013 at 7:10

GoogleCodeExporter commented 8 years ago
I noticed this problem with my config. According to "darcs log", this is the 
patch where I fixed it, you might check what I did to XMonad.Config.Dmwit and 
see if you can do something similar to yours.

Tue Aug 13 17:16:36 EDT 2013  Daniel Wagner <daniel@wagner-home.com>
  * don't pretend to be LG3D in X.C.Dmwit because this confuses modern GTK

Original comment by daniel.w...@gmail.com on 24 Sep 2013 at 7:24

GoogleCodeExporter commented 8 years ago
Wonderful, that solves it thank you :)

Original comment by dragonch...@gmail.com on 1 Oct 2013 at 12:39

GoogleCodeExporter commented 8 years ago
I have this problem with gnucash in xmonad 0.11 on lubuntu 13.10.  I've dropped 
the LG3D reference in my xmonad.hs.  As I've had no luck, I wonder if I've 
understood the advice in this thread.  TIA for any pointers you can give.

Original comment by tmartin....@gmail.com on 3 Nov 2013 at 1:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have the same as issue as described in the bug report. 

I've also tried fetching the latest xmonad and xmonad-contrib built from darcs. 
I need to remove the SetWMName startup hook and ICCCMFocus takeTopFocus loghook 
to have gnome applications redraw normally.

So currently I'm in a flux where I can't use PyCharm (Jetbrains Java IDE and 
other java applications) or not having any working gtk3 applications. 

Issue can easily be reproduced by using "wmname" from suckless-tools (Debian 
Sid) to set anything for wmname to make gnome applications break. 

FAQ seems also to be updated after I reported this on IRC: 
http://www.haskell.org/haskellwiki/index.php?title=Xmonad%2FFrequently_asked_que
stions&action=historysubmit&diff=57053&oldid=56813 . 

Original comment by roy.sindre@norangshol.no on 4 Nov 2013 at 1:50

GoogleCodeExporter commented 8 years ago
pycharm/phpstorm works fine for me now.... (wich vm are you using?)

Original comment by dragonch...@gmail.com on 4 Nov 2013 at 1:51

GoogleCodeExporter commented 8 years ago
suckless wmname *itself* breaks gnome (2 and 3), and in more ways than just 
gtk+ refresh, because it sets the WM identification window to be the root 
window instead of a hidden window, so that can't actually be used to reproduce 
this problem.

Original comment by allber...@gmail.com on 4 Nov 2013 at 2:40

GoogleCodeExporter commented 8 years ago
#8 :

I've tried these jvm's:
Oracle JDK 1.6 (grey window. like:  
http://absint.online.ntnu.no/~norangsh/scrot/screenshoot-20131104_155551.png)
Oracle JDK 1.7u45 (grey window)
OpenJDK 7u25 (it crases PyCharm with Caused by: java.lang.ClassCastException: 
com.intellij.openapi.wm.impl.TestWindowManager cannot be cast to 
com.intellij.openapi.wm.impl.WindowManagerImpl ) (currently an internal bug the 
console says, will report upstream afterwards) 
OpenJDK 1.6u27 (nothing happens after the OpenJDK warning... no window spawned 
or anything.)

PyCharm works as it should if I'm using JDK1.6 from Oracle with the setWMName 
and takeTopFocus loghook.

Original comment by roy.sindre@norangshol.no on 4 Nov 2013 at 3:33

GoogleCodeExporter commented 8 years ago
The solution is to NOT USE the SetWMName extension in order to convince Java 
that xmonad is "LG3D" (which is a deprecated way of working around the gray 
java windows). Because this SetWMName breaks GTK3-apps, see the xmonad FAQ: 
https://wiki.haskell.org/Xmonad/Frequently_asked_questions#Using_SetWMName

Instead use the preferred method (see FAQ 
https://wiki.haskell.org/Xmonad/Frequently_asked_questions#Preferred_Method) 
and set an environment variable _JAVA_AWT_WM_NONREPARENTING=1 at startup. I did 
this by adding the following to my xmonad.hs:

  import System.Posix.Env (putEnv)

and adding the putEnv line to the startup of xmonad:

  main = do
            putEnv "_JAVA_AWT_WM_NONREPARENTING=1"

Now I can use all java applications and GTK3-apps.

Original comment by dtrne...@googlemail.com on 31 Jul 2015 at 10:39

GoogleCodeExporter commented 8 years ago
This “bug” is solved and can be closed as it is not a bug but just a 
configuration issue which is now documented here and in the xmonad FAQ.

Original comment by dtrne...@googlemail.com on 31 Jul 2015 at 10:43