Bug 223033 - Window borders disappear when over resizing window
Summary: Window borders disappear when over resizing window
Status: RESOLVED DUPLICATE of bug 213267
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 22:03 UTC by Jamie Dumbill
Modified: 2010-01-18 20:41 UTC (History)
1 user (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 Jamie Dumbill 2010-01-16 22:03:10 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Ubuntu Packages

When changing a window width, resizing it over a certain size means the window border disappears. The window controls (maximise, minimise, close) are not available until the resized to a smaller size. This occurs on all windows. I can only reproduce it when resizing a window to greater than the screen size available.
Comment 1 Thomas Lübking 2010-01-16 22:29:07 UTC
does this happen:
- only with activated compositing?
- with all decorations?

also, what is your GPU/VRAM/driver compared to your screen size?
Comment 2 Jamie Dumbill 2010-01-17 00:17:05 UTC
It occurs only when compositing is active and with all window decorations. Screen size is 1920x1200.



01:00.0 VGA compatible controller: ATI Technologies Inc RV380 0x3e50 [Radeon X600]
        Subsystem: ASUSTeK Computer Inc. Device 0328                              
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- 
        Latency: 0, Cache Line Size: 32 bytes                                                                
        Interrupt: pin A routed to IRQ 16                                                                    
        Region 0: Memory at c0000000 (32-bit, prefetchable) [size=256M]                                      
        Region 1: I/O ports at 9000 [size=256]                                                               
        Region 2: Memory at ff7f0000 (32-bit, non-prefetchable) [size=64K]                                   
        Expansion ROM at ff7c0000 [disabled] [size=128K]                                                     
        Capabilities: <access denied>                                                                        
        Kernel modules: radeon, radeonfb
Comment 3 Thomas Lübking 2010-01-17 00:40:00 UTC
i assume it does not happen with the render backend?
what does
   glxinfo -l | grep -iE '(dim|size)'
print?

(this is probably a driver bug, any chance you can test radeonhd or fglrx?)
Comment 4 Jamie Dumbill 2010-01-17 10:43:50 UTC
I won't be able to test the other drivers for a couple of weeks but will post the results once I have.


jamiedumbill@zebedee:~$ glxinfo -l | grep -iE '(dim|size)'
    GL_MAX_TEXTURE_SIZE = 2048
    GL_MAX_3D_TEXTURE_SIZE = 256
    GL_MAX_VIEWPORT_DIMS = 4096, 4096
    GL_ALIASED_POINT_SIZE_RANGE = 1, 10922
    GL_SMOOTH_POINT_SIZE_RANGE = 1, 10922
    GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 2048
Comment 5 Thomas Lübking 2010-01-17 14:50:45 UTC
did you test the render backend? (see the "advanced" tab of "desktop effects")

also, if you have 4.4, or the nitrogen or bespin decos installed, could you set no window borders ("Tiny" mode for bespin, nitrogen shippes its own settings)
Comment 6 Jamie Dumbill 2010-01-17 15:29:00 UTC
Under compositing type XRender only the buttons disappear on the window decorations. I don't have 4.4 I have installed bespin from the ubuntu karmic repo, the result is the whole window disappears, leaving only a shadow when the window is over sized.

jamiedumbill@zebedee:~$ apt-cache show kde4-style-bespin
Package: kde4-style-bespin
Priority: optional
Section: universe/kde
Installed-Size: 36
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Guillaume Martres <smarter@ubuntu.com>
Architecture: amd64
Source: kde-style-bespin
Version: 0.1~svn090802-0ubuntu3
Depends: kde-style-bespin
Filename: pool/universe/k/kde-style-bespin/kde4-style-bespin_0.1~svn090802-0ubuntu3_amd64.deb
Size: 1908
MD5sum: a11f9b509e63b192719d79089724852b
SHA1: ba4ceab5ea7f8c54fd7fd15642d77c9fe2895686
SHA256: 097b705d11afdaa947471724501a41c9073ff538b690a7ed719b222218b342cd
Description: A very glossy Qt4 widget style
 Bespin is a widget style for Qt4, the name is nothing about quantum mechanics,
 but just refers to cloud city (StarWars Episode V: The Empire Strikes Back)
 .
 This is a dummy package to depend on kde-style-bespin for
 upgrades, it can be safely removed.
Homepage: http://cloudcity.sf.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Comment 7 Thomas Lübking 2010-01-17 15:54:39 UTC
i didn't mean to set the style (the background gradients/styled background will make things worse in your case), just the decoration (and there the tiny setting to prevent kwin's paintredirector from generating a HUGE ARGB buffer pixmap)
Comment 8 Jamie Dumbill 2010-01-17 15:59:03 UTC
Sorry for the misunderstand. I have reverted to 'Oxygen' and set the Decorations option, border size to 'tiny' the same effect is seen, window border is lost.
Comment 9 lucas 2010-01-18 13:39:23 UTC

*** This bug has been marked as a duplicate of bug 213267 ***
Comment 10 Thomas Lübking 2010-01-18 14:15:28 UTC
@Lucas:
i'm not really sure about the dupe, as only the decorations seems to be affected and as for the tiny state (of at least bespin) they should not be (much) wider than the window itself - yesno?
Comment 11 lucas 2010-01-18 14:22:40 UTC
Reporter's GL_MAX_TEXTURE_SIZE = 2048px
Reporter's screen resolution = 1920px on the horizontal

Due to Oxygen's window shadows the decoration texture can be easily >100px larger than the window itself thus the decoration texture for a window 1920px wide will be ~2020px. This means that if the window is resized only slightly larger than the screen the decoration will disappear due to hardware limitations.
Comment 12 Thomas Lübking 2010-01-18 14:32:41 UTC
this is (among other) why i asked #5 (the horizontal deco padding is 0 in this case)

@jamie:
does comment #8 mean you reverted to and used the tiny setting on the oxygen window decoration?
(decoration: "kcmshell4 kwindecoration" vs. style: "kcmshell4 style")

and when using the bespin deco + tiny borders, does the window have to be slightly bigger then with the oxygen deco to trigger the black window?
(you can have the geometry displayed from a checkbox in the "moving" page)
Comment 13 Jamie Dumbill 2010-01-18 20:32:37 UTC
I used kcmshell4 kwindecoration

Oxygen looses its decorations at 1995px wide triggers the black window at 2045px wide. Bespin triggers the black window at 2049px with no loss of decorations before hand. In this case both were set to tiny in kcmshell4 kwindecoration
Comment 14 Thomas Lübking 2010-01-18 20:41:00 UTC
then it _is_ a Dupe.
Sorry for the confusion on and from my side.