Bug 295176 - graphical glitches in some window decorations when using libreoffice-gtk
Summary: graphical glitches in some window decorations when using libreoffice-gtk
Status: RESOLVED DUPLICATE of bug 291774
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 20:54 UTC by S. Christian Collins
Modified: 2012-03-01 23:01 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 S. Christian Collins 2012-03-01 20:54:02 UTC
Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

Parts of the window decoration are missing or appear buggy when using the LibreOffice GTK integration rather than the KDE integration package.  This bug only affects certain window decorations and only occurs with desktop effects enabled (both OpenGL and Xrender backends).

Here is a video demonstration: http://youtu.be/Tn81yQK2wVM

LibreOffice with the GTK & GNOME integration packages installed appears to provide its own window decoration shadow somehow, which produces some strange results when used with different window decorations.  For example, the B II decoration ends up with a shadow that doesn't follow the cutaway shape of the title bar.  Keramic's shadow doesn't follow the contour of the corners, etc.  However, both QtCurve and Aurorae decorations totally bug out with the window decoration sometimes disappearing entirely (leaving only the shadow) or a big block of color along the right window border.  The Oxygen window decoration, on the other hand, doesn't exhibit any noticeable glitches.


Reproducible: Always

Steps to Reproduce:
1. Install LibreOffice (if it isn't already).
2. Remove the KDE integration package (libreoffice-kde on Kubuntu).
3. Install the GTK/GNOME integration packages (libreoffice-gtk & libreoffice-gnome).
4. I'm not sure if this matters, but I have the following line added to my /etc/profile: OOO_FORCE_DESKTOP=gnome
5. Set the window decoration to QtCurve or an Aurorae theme.
6. Make sure desktop effects are enabled.
7. Launch LibreOffice Writer.  Try moving windows or opening the Help > About LibreOffice window.

Actual Results:  
The window decorations go all wonky.

Expected Results:  
No wonkiness.

I am using KDE 4.8.0 on Kubuntu 11.10.  I can reproduce the problem with both Qt 4.7.4 and 4.8.0.  I have experienced this bug on the two systems listed below:

** System #1 **
OS: Kubuntu 11.10 64-bit w/ KDE SC 4.8.0
Motherboard: ASRock X58 Extreme3 (Intel X58 chipset)
CPU: Intel Core i7 (2.8 GHz quad-core)
RAM: 12GB DDR3
Video: Dell NVIDIA GeForce 7800 GTX w/ 256 MB RAM (PCI Express)
Linux Kernel: 3.1.0-1-generic
NVIDIA video driver: 280.13
Screen Resolution: 1280 x 960

** System #2 **
OS: Kubuntu 11.10 i386 w/ KDE SC 4.8.0
PC: HP Pavilion dv1550se laptop
CPU: Intel(R) Pentium(R) M processor 1.60GHz
RAM: 1.5GB DDR400
Video: Mobile 915GM/GMS/910GML Express Graphics Controller
Comment 1 Thomas Lübking 2012-03-01 21:07:10 UTC
It's probably related to bug #291774
Does it happen is you do NOT use oxygen as gtk+ theme?
Comment 2 S. Christian Collins 2012-03-01 21:31:20 UTC
Hi Thomas.  This does indeed seem to be related to bug #291774.  Changing the GTK theme to Raleigh fixed the issues with the decoration.

BTW, is there a KDE equivalent to the GTK command to launch an application with a different widget style?  For example, I can launch Firefox with:

GTK2_RC_FILES=/usr/share/themes/QtCurve/gtk-2.0/gtkrc firefox

...and Firefox will be themed by QtCurve instead of the default widget style.  I would like to be able to use the LibreOffice KDE integration, but it looks awful, especially the borderless menus.  Being able to launch it with the QtCurve theme engine would be an improvement.
Comment 3 Thomas Lübking 2012-03-01 22:03:30 UTC
Assuming dupe for now.

(In reply to comment #2)

> BTW, is there a KDE equivalent to the GTK command to launch an application with
> a different widget style?  For example, I can launch Firefox with:

For Qt based applications there's a switch:
kwrite --style qtcurve
resp. for plain Qt applications with a single dash:
speedcrunch -style qtcurve

but:
> I would like to be able to use the LibreOffice KDE integration, but it looks
> awful, especially the borderless menus. 
I've no idea whether libreoffice accepts such - i however doubt that using another Qt style will really help you on libreoffice. afair the qstyle backend is inferior to the gtk+ one and several style settings will fail because LO paints hardcoded colored text :-(

*** This bug has been marked as a duplicate of bug 291774 ***
Comment 4 S. Christian Collins 2012-03-01 23:01:30 UTC
Thanks for your help Thomas and also for all the work you do to make KDE the best DE on the planet!