Bug 157659 - windows not repainted correctly when enlarged by dragging
Summary: windows not repainted correctly when enlarged by dragging
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 157887 158546 160081 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-11 11:23 UTC by Huub Schaeks
Modified: 2012-03-22 05:49 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Drawing errors on resizing windows in kwin (156.99 KB, image/jpeg)
2008-04-02 21:03 UTC, Michael Leupold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Huub Schaeks 2008-02-11 11:23:10 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I'm using the openSUSE 11.0 Alpha2 KDE LiveCD.
When I drag a window border to enlarge the window the content of the window seems to adjust to the new window size but the part of the window that was added by dragging is not painted.
Happens with any application.
I can force a correct redraw by moving the window around.

regards
Huub
Comment 1 Lubos Lunak 2008-02-11 15:07:26 UTC
Desktop effects enabled? Which graphics card?
Comment 2 Huub Schaeks 2008-02-11 22:04:21 UTC
I have a Radeon 9800 Pro video card which is identified as R350 NH in Xorg.0.log. No desktop effects, just plain boot from the Live CD.

regards
Huub
Comment 3 Lubos Lunak 2008-03-03 20:03:50 UTC
Is this the same like https://bugzilla.novell.com/show_bug.cgi?id=361467 ?
Comment 4 Huub Schaeks 2008-03-04 11:46:49 UTC
It certainly seems to be. 361467 describes what I see quite nicely and the QT_USE_NATIVE_WINDOWS setting works for me as well, so I assume it's the same issue.
Comment 5 Lubos Lunak 2008-03-07 21:32:21 UTC
*** Bug 157887 has been marked as a duplicate of this bug. ***
Comment 6 Lubos Lunak 2008-03-09 14:56:08 UTC
*** Bug 158546 has been marked as a duplicate of this bug. ***
Comment 7 Lubos Lunak 2008-04-02 15:23:57 UTC
*** Bug 160081 has been marked as a duplicate of this bug. ***
Comment 8 Matthew Woehlke 2008-04-02 20:21:55 UTC
People might be more likely to notice this as the original bug if the description was better :-).
Comment 9 Michael Leupold 2008-04-02 20:58:31 UTC
I'm seeing pretty much the same behaviour (trunk/r752596). I'm using an NVIDIA 8600 GTS using the non-free driver (169.12). The problem appears using both OpenGL and XRENDER for desktop effects. The drawing errors are also available for any of the window decorations I tried (Oxygen/Plastik/Keramik).

I tried using QT_USE_NATIVE_WINDOWS as stated above and it seems to make things a little better however that's just a subjective feeling I have.
Comment 10 Michael Leupold 2008-04-02 21:03:16 UTC
Created attachment 24157 [details]
Drawing errors on resizing windows in kwin

Just for the reference I'm attaching 2 screenshots I made. One after
horizontally shrinking the window, the other after horizontally enlarging the
window.
Comment 11 Matthew Woehlke 2008-04-02 21:56:16 UTC
> The problem appears using both OpenGL and XRENDER for desktop effects.

...and with composite disabled.
Comment 12 Michael Leupold 2008-04-03 11:21:03 UTC
> > The problem appears using both OpenGL and XRENDER for desktop effects.
> ...and with composite disabled.
I see the same drawing errors regardless of wether I:
- disable effects in the Desktop settings
- disable Composite and XRENDER in my xorg.conf

In any case the border and icons get redrawn correctly when they get refreshed (eg. on clicking outside the window).
Comment 13 Michael Leupold 2008-04-04 14:03:49 UTC
I just compiled r793556. Either this or Qt4.4rc1 seems to have fixed it.
Comment 14 Matthew Woehlke 2008-04-04 18:05:53 UTC
Same here. Lubos, please close this (I'd do it, but I'm not sure if you would prefer WORKSFORME or FIXED; you probably know better if Qt was the problem...).
Comment 15 Lubos Lunak 2008-04-04 19:16:39 UTC
Not fixed yet.
Comment 16 Lubos Lunak 2008-04-04 20:09:17 UTC
SVN commit 793649 by lunakl:

Work around a Qt4.4.0RC1 redrawing bug.
BUG: 157659



 M  +2 -0      main.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=793649
Comment 17 Armin Berres 2008-04-05 20:22:29 UTC
Just for the reference: I updated QT to rc1, but didn't upgrade KDE, it is still r791114 and the bug is gone.
Comment 18 Martin Flöser 2012-03-22 05:49:56 UTC
Git commit 84f9e75c4fb0bc41c5a0882a64693b1a0cf7c946 by Martin Gräßlin.
Committed on 16/03/2012 at 10:46.
Pushed by graesslin into branch 'master'.

Drop workaround for BUG 157659

Workaround for a Qt4.4RC1 redrawing bug is no longer needed.
REVIEW: 104300

M  +0    -3    kwin/main.cpp

http://commits.kde.org/kde-workspace/84f9e75c4fb0bc41c5a0882a64693b1a0cf7c946