This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Stretched window decorations with OpenGL compositing

Tags: None
(comma "," separated)
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Since the update to 4.7.4 I've had a problem with stretched window decorations in KWin when desktop effects are enabled, see screenshot:
Image

Does anyone know the cause of this, and how it can be fixed?

Notes:
  • It only happens with OpenGL, XRender is fine.
  • This was a big update so I'm not sure it's a KWin problem. However, xorg-server and my graphic drivers were not updated, which were my first suspects.
  • My graphic card is an Nvidia GeForce FX 5200. I've tried both the nvidia-173xx and nouveau driver, same problem with both.
  • Switching to a new user doesn't solve the problem.
  • I'm pretty sure I've seen something similar on my netbook, but in that case toggling compositing off and on solved it.
  • This affects all window decorations I've tried.
  • Is this related to Bug #282882? I don't (think I) use raster though.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Have you tried a different (ie. non Oxygen) window decoration?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Yep, happens with all window decorations I've tried so far.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Does toggling certain effects (namely the notorious Blur effect) have any impact?

Also, might pay to check dmesg, ~/.xsession-errors and /var/log/Xorg.0.log to see if the driver is complaining about issues.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
I tried to disable all effects - no difference. Blur is not supported by my card so it's always disabled.

Not sure what to look for in dmesg etc. No errors (EE) related to graphic driver in /var/log/Xorg.0.log.

If I run
Code: Select all
tail -f ~/.xsession-errors | grep kwin

when I enable compositing, I get
Code: Select all
kwin(771) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"
kwin(771) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"
kwin(771) KWin::CompositingPrefs::detect: glx version is  1 . 4
kwin(771) KWin::Workspace::setupCompositing: Initializing OpenGL compositing
kwin(771) KWin::SceneOpenGL::initBufferConfigs: Drawable visual (depth  24 ): 0x "17e"
kwin(771) KWin::SceneOpenGL::initBufferConfigs: Drawable visual (depth  32 ): 0x "a8"
kwin(771) KWin::SceneOpenGL::initBuffer: Buffer visual (depth  24 ): 0x "182"
kwin(771) KWin::ShaderManager::initShaders: OpenGL Shaders disabled by config option
kwin(771) KWin::SceneOpenGL::SceneOpenGL: No Scene Shaders available
kwin(771) KWin::SceneOpenGL::SceneOpenGL: DB: true , Direct: true
kwin(771) KWin::currentRefreshRate: Refresh rate  60 Hz
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_desktopgrid"
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_slide"
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_presentwindows"
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_dashboard"
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_logout"
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_dimscreen"
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_zoom"
kwin(771) KWin::EffectsHandlerImpl::loadEffect: Trying to load  "kwin4_effect_dialogparent"


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Interesting, apparently shaders aren't supported...
Can you find something that looks like this in ~/.xsession-errors?

Code: Select all
OpenGL vendor string:                   Tungsten Graphics, Inc
OpenGL renderer string:                 Mesa DRI Intel(R) Ironlake Mobile
OpenGL version string:                  2.1 Mesa 7.11
OpenGL shading language version string: 1.20
Driver:                                 Intel
GPU class:                              i965
OpenGL version:                         2.1
GLSL version:                           1.20
Mesa version:                           7.11
X server version:                       1.10.4
Linux kernel version:                   3.1
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bernard
Registered Member
Posts
2
Karma
0
I can report the same problem appeared after migrating from 4.7 to 4.8 on opensuse 12.1. Switching off open gl rendering is a workaround.

Nvidia 5500 + proprietary drivers.

If more info was needed, I'd happily provide it.

Kind regards,
Bernard
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
bcooksley wrote:Interesting, apparently shaders aren't supported...

I switched off shaders with the Nouveau driver (otherwise all windows are just rendered black), not sure if I had it enabled before.

Can you find something that looks like this in ~/.xsession-errors?


Code: Select all
OpenGL vendor string:                   nouveau
OpenGL renderer string:                 Gallium 0.4 on NV34
OpenGL version string:                  1.5 Mesa 7.11.2
OpenGL shading language version string: 1.20
Driver:                                 Nouveau
GPU class:                              NV30
OpenGL version:                         1.5
GLSL version:                           1.20
Mesa version:                           7.11.2
X server version:                       1.11.3
Linux kernel version:                   2.6.38
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           limited
Texture NPOT support:                   no


bernard wrote:I can report the same problem appeared after migrating from 4.7 to 4.8 on opensuse 12.1. Switching off open gl rendering is a workaround.

Nvidia 5500 + proprietary drivers.

If more info was needed, I'd happily provide it.

Kind regards,
Bernard


I haven't upgraded to 4.8 yet, but judging from your post it seems like it won't resolve my issue. Which 4.7 version did you upgrade from?


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
bernard
Registered Member
Posts
2
Karma
0
I upgraded from 4.7.2. I didn't have this issue there.

But this is weird, while trying to get more info from logs I did some OpenGL->Xrender->OpenGL switching and at one point it looks good even on OpenGL. But I still get the message also in

tail -f ~/.xsession-errors | grep kwin
kwin(1313): Shaders are not supported

Regards,
Bernard
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
After the upgrade today my issues were solved. Other than the 4.8 packages for KDE software, I also upgraded libxres and libgles (and some other packages which I don't think are relevant); not sure what fixed it.

EDIT: Huh, seems like I need to take that back - after a reboot the window decorations are stretched again.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
HardyH
Registered Member
Posts
4
Karma
0
I have the same Problem, but:

if the computer starts with XRender activated and i change afterwards to OpenGL all seems ok, if i start with OpenGL i have the stretched title-bar (double height, double length)

ATI Radeon 9250

Code: Select all
OpenGL vendor string:                   Tungsten Graphics, Inc.
OpenGL renderer string:                 Mesa DRI R200 (RV280 5960) x86/MMX+/3DNow!+/SSE2 TCL DRI2
OpenGL version string:                  1.3 Mesa 7.11
Driver:                                 R200
GPU class:                              R200
OpenGL version:                         1.3
Mesa version:                           7.11
X server version:                       1.10.4
Linux kernel version:                   3.0
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           no
Texture NPOT support:                   no
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
HardyH wrote:I have the same Problem, but:

if the computer starts with XRender activated and i change afterwards to OpenGL all seems ok, if i start with OpenGL i have the stretched title-bar (double height, double length)


Indeed, it seems that if I start with compositing deactivated, I don't get this problem.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
For those who have this problem, you can try this workaround:

Create the file ~/.kde4/env/qt-graphicssystem.sh (or ~/.kde/... depending on your distro) with the following content:
Code: Select all
#!/bin/sh
export QT_GRAPHICSSYSTEM=native


Logout and login again.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
tax3718
Registered Member
Posts
7
Karma
0
OS
hello,
failing to do more tests, is working well.
thank you very much.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
No problem, hopefully this bug is fixed soon.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]