Commit e02fef08 authored by Martin Flöser's avatar Martin Flöser

[kstyle] Do not delete the Surface for a QWindow

Surface::fromWindow are shared! By deleting the Surface pointer copies in
other areas are getting deleted as well. This breaks e.g. KWin in various
ways.
parent 5328a253
......@@ -191,7 +191,6 @@ namespace Breeze
auto iter = _widgetSurfaces.find( widget );
if( iter != _widgetSurfaces.end() )
{
delete iter.value();
_widgetSurfaces.erase( iter );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment