Bug 154825 - Desktop not repainting after session change
Summary: Desktop not repainting after session change
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 157003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-29 19:27 UTC by Unknown
Modified: 2008-03-09 21:06 UTC (History)
2 users (show)

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 Unknown 2007-12-29 19:27:04 UTC
Version:           revision 754176 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) 
OS:                Linux

I've got KDE4 running on a second X session while KDE3 runs in the first one (with a different user, of course). When I switch to my KDE3 session and back to the KDE4 one, the screen remains black and gets repainted only slowly, i.e. by opening and closing menus (the space they covered is repainted). That's reproducible and didn't change since I first checked out KDE4 (about two weeks ago).
Comment 1 Jason Stubbs 2007-12-30 04:09:22 UTC
Using nvidia binary drivers? Works fine without composite enabled?

This is not a plasma bug though.. I guess it would be kwin?
Comment 2 Unknown 2007-12-30 10:10:28 UTC
Yes, nvidia binary drivers (version 100.14.19). Yes, compositing enabled. After disabling it, I first get really strange graphics errors (that's a different bug though, I think), and after logging out and in again, session change works fine.
I'm sorry if Plasma is the wrong component, I didn't know which was the right one and Bugzilla refused to leave the report without component.
Comment 3 Jason Stubbs 2007-12-30 10:39:17 UTC
No problems.

Kwin people, can anything be done about this or is it nvidia's problem?
Comment 4 Unknown 2007-12-30 10:50:48 UTC
Perhaps these additional notes are helpful...
When I enable the desktop effects and they were previously disabled, I've got exactly the same behaviour.
I just tried out session switching using KDE3 and compositing with compiz, and here it works fine: I immediately see the whole session after switching to it.
Comment 5 Jonathan Thomas 2008-01-10 20:00:02 UTC
I have the latest nvidia drivers, KDE3 session running in another X session, etc. I can't reproduce this bug in 4.0.0. 
I'm using Kubuntu 7.10 if anyone's interested.
Comment 6 Jason Stubbs 2008-01-12 12:53:50 UTC
I get the issue here with xorg-x11-7.2, nvidia-drivers-169.07 and KDE trunk here. What's your xorg version?
Comment 7 Unknown 2008-01-15 12:53:00 UTC
My xorg is at version 7.2. I just tried to change the render options of KWin from OpenGL to XRender, and that seems to solve it - for 1-2 seconds, I get a black screen with only my mouse, and then the complete KDE desktop appears.
Comment 8 Lubos Lunak 2008-01-15 14:07:00 UTC
SVN commit 761857 by lunakl:

Trigger full repaint after configuration change and after switching to X,
just in case.
BUG: 154825



 M  +3 -0      events.cpp  
 M  +1 -0      workspace.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=761857
Comment 9 Lubos Lunak 2008-01-15 14:09:49 UTC
If the problem still remains after the workaround, the bug is in X or in drivers or somewhere. I suggest checking with Compiz.
Comment 10 Jason Stubbs 2008-01-15 15:52:55 UTC
For the record, the problem still exists here although I'm switched back to using nvidia drivers 100.14.23 in the mean time. It doesn't really concern me enough to go fiddling with compiz, so I'll leave it to other users to complain to xorg/nvidia.
Comment 11 Unknown 2008-01-22 20:19:30 UTC
I can confirm that, the problem remains.

> I suggest checking with Compiz.
As I said, compiz works fine here with KDE3. Do you think it should be tested with KDE4 as well?
Comment 12 Lubos Lunak 2008-01-24 16:47:29 UTC
If this same problem doesn't show with Compiz, then this needs reopening, but it still looks like driver problem to me.
Comment 13 Unknown 2008-01-25 16:11:24 UTC
I just tried compiz with KDE4 which also works fine. So it must be a problem in KWin as the rest is the same compiz uses. Perhaps compiz has a workaround which KWin doesn't have?
Comment 14 Lubos Lunak 2008-01-30 15:36:33 UTC
Nvidia problem. I cannot come up with a workaround I'm afraid.
Comment 15 Lubos Lunak 2008-02-01 15:21:43 UTC
*** Bug 157003 has been marked as a duplicate of this bug. ***
Comment 16 Lubos Lunak 2008-03-09 21:06:36 UTC
SVN commit 783860 by lunakl:

Add a hack that somewhat improves screen repaint after X session
switch with drivers that have a problem with this.
CCBUG: 154825



 M  +6 -1      events.cpp  
 M  +1 -1      workspace.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=783860