Bug 305360 - bugs in GTK Applications menu with kwin
Summary: bugs in GTK Applications menu with kwin
Status: RESOLVED DUPLICATE of bug 295254
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 4.9.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: http://www.youtube.com/watch?v=-Z4IMu...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-17 22:55 UTC by Raphael Cazenave
Modified: 2012-08-19 18:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Cazenave 2012-08-17 22:55:38 UTC
GTK menus does not appears, maybe traslucent, maybe good, maybe corrupted...
I try a lot of GTK themes, and its the same problem.
With Composing disable by ALT SHIFT F12, its ok, the problem disapear.

Linux ... 3.4.8-1-ARCH #1 SMP PREEMPT Thu Aug 9 19:24:46 UTC 2012 i686 GNU/Linux
Archlinux is up to date.

Using catalyst-total 12.8-1 on AMD 6450 PCIexpress.
composite : openGL OR Xrender, its the same 

Reproducible: Sometimes

Steps to Reproduce:
1. open Gimp or Eclipse (Firefox 14its OK)
2. Open menu
3. Look the menus :/
Actual Results:  
Corrupted menus

Expected Results:  
Good menu

Package list and versions : http://pastebin.archlinux.fr/449541
Xorg.conf: http://pastebin.archlinux.fr/449542

Sorry for mistakes, I don't speak very good English (im french)
Comment 1 Raphael Cazenave 2012-08-17 22:58:42 UTC
we stay in touch for any information.
Kind regards
Comment 2 Thomas Lübking 2012-08-17 23:53:52 UTC
Firefox is not a gtk+ application (but XUL)

Can you
a) check whether it happens with ARGB visibles disabled
                  XLIB_SKIP_ARGB_VISUALS=1 gimp
if yes,
b) provide a screenshot

in any case better attach a dump of "xprop -root > root.props" and "xprop > client.props" (after the second command click an affected gtk+ window - you'll unlikely be able to click a popup menu this way)
Comment 3 Martin Flöser 2012-08-18 06:21:08 UTC
please also attach output of
qdbus org.kde.kwin /KWin supportInformation

are these GTK 2 or GTK 3 application. Firefox I know to be GTK 2, but what about the others?
Comment 4 Raphael Cazenave 2012-08-18 17:35:21 UTC
Hey,
with XLIB_SKIP_ARGB_VISUALS=1 gimp , the problem is less frequent, but sometime (1 time for 15 times) when i click on menu, nothing happens.
Screenshot : http://funkyimg.com/u2/2007/782/865823gimp-screenshot.png
dump of "xprop -root > root.props"  : http://paste.debian.net/184447/
output of "xprop > client.props" after clicking on a windows launched with "$ gimp" : http://paste.debian.net/184452/

Kind regards
Comment 5 Raphael Cazenave 2012-08-18 17:37:32 UTC
I try pidgin too, same issue.
Gnumeric, same issue.
i try again to change the gtk theme with "$ gtk-theme-switch2" but with all themes there is the issue

Kind regards
Comment 6 Raphael Cazenave 2012-08-18 17:41:08 UTC
here is my "qdbus org.kde.kwin /KWin supportInformation"
http://paste.kde.org/536522/

kind regards
Comment 7 Thomas Lübking 2012-08-18 18:04:19 UTC
The only issue i can perceive on on the screenshot is that a localized string takes too much space yet is painted "outside" the menu, what -since ARGB visuals are disabled- means that the menu window is actually wider than the frame suggests (that is an issue of gtk+ or the theme engine)

Can you please also provide a shot of the original issue (ie. with ARGB visuals enabled, just don't set that variable)

The xprops do at first sight not contain anything suspicious.
Comment 8 Martin Flöser 2012-08-18 18:15:27 UTC
it's the fglrx - that might be important. Could you please try whether enforcing direct rendering improves the situation. Please run
KWIN_DIRECT_GL=1 kwin --replace &

from a command line in case you have the latest driver. If not please update the driver
Comment 9 Thomas Lübking 2012-08-18 18:36:33 UTC
My first thought, but OP says
> composite : openGL OR Xrender, its the same

@rcleveque
shot in the dark: enable the fade effect
Comment 10 Raphael Cazenave 2012-08-18 19:22:28 UTC
Thanks for your help.

 Thomas Lübking 2012-08-18 18:04:19 UTC:
Here is a shot of original issue with  "$ XLIB_SKIP_ARGB_VISUALS=0 gimp" : http://funkyimg.com/u2/2007/939/888942XLIB_SKIP_ARGB_VISUALS_0_gimp.png 
and with "$ gimp" : http://funkyimg.com/u2/2007/949/941294gimpONLY.png

 Martin Gräßlin 2012-08-18 18:15:27 UTC :
when i try KWIN_DIRECT_GL=1 kwin --replace & , the problem still exist.

Kind regards
Comment 11 Thomas Lübking 2012-08-18 19:36:07 UTC
Thanks. I bet your right arm that activating the fade effect will prevent this.

Likely some issue with damage events (I wonder whether those popups support the XSYNC extension)

@Martin
we could probably schedule readyForPainting() and corresponding signals for a few (like 50) ms for all windows that don't use XSYNC from either side. E17 does that for sure - no idea about compiz/mutter
Comment 12 Martin Flöser 2012-08-19 06:39:29 UTC
that sounds like a reasonable solution to me
Comment 13 Raphael Cazenave 2012-08-19 16:48:29 UTC
Hey,
Thanks for your help, youre right, with fade effect, its ok :)
I keep it enabled.
Kind regards.
Comment 14 Thomas Lübking 2012-08-19 18:22:29 UTC

*** This bug has been marked as a duplicate of bug 295254 ***