43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
diff --git a/kstyle/oxygenshadowhelper.cpp b/kstyle/oxygenshadowhelper.cpp
|
|
index b15ebcb..0821625 100644
|
|
--- a/kstyle/oxygenshadowhelper.cpp
|
|
+++ b/kstyle/oxygenshadowhelper.cpp
|
|
@@ -63,14 +63,6 @@ namespace Oxygen
|
|
ShadowHelper::~ShadowHelper( void )
|
|
{
|
|
|
|
- #if HAVE_X11
|
|
- if( _helper.isX11() )
|
|
- {
|
|
- foreach( const uint32_t& value, _pixmaps ) xcb_free_pixmap( _helper.xcbConnection(), value );
|
|
- foreach( const uint32_t& value, _dockPixmaps ) xcb_free_pixmap( _helper.xcbConnection(), value );
|
|
- }
|
|
- #endif
|
|
-
|
|
delete _shadowCache;
|
|
|
|
}
|
|
@@ -78,14 +70,6 @@ namespace Oxygen
|
|
//______________________________________________
|
|
void ShadowHelper::reset( void )
|
|
{
|
|
- #if HAVE_X11
|
|
- if( _helper.isX11() )
|
|
- {
|
|
- // round pixmaps
|
|
- foreach( const uint32_t& value, _pixmaps ) xcb_free_pixmap( _helper.xcbConnection(), value );
|
|
- foreach( const uint32_t& value, _dockPixmaps ) xcb_free_pixmap( _helper.xcbConnection(), value );
|
|
- }
|
|
- #endif
|
|
|
|
_pixmaps.clear();
|
|
_dockPixmaps.clear();
|
|
@@ -321,6 +305,7 @@ namespace Oxygen
|
|
// create X11 pixmap
|
|
xcb_pixmap_t pixmap = xcb_generate_id( _helper.xcbConnection() );
|
|
xcb_create_pixmap( _helper.xcbConnection(), 32, pixmap, QX11Info::appRootWindow(), width, height );
|
|
+ //xcb_free_pixmap( _helper.xcbConnection(), pixmap );
|
|
|
|
// create gc
|
|
if( !_gc )
|