When there is no window, we can't select one with a mouse click in coverswitch.
BUG: 221626 svn path=/trunk/KDE/kdebase/workspace/; revision=1072044
This commit is contained in:
parent
72cea7e73a
commit
bdbcd60b4f
1 changed files with 4 additions and 0 deletions
|
@ -959,6 +959,10 @@ void CoverSwitchEffect::windowInputMouseEvent( Window w, QEvent* e )
|
|||
if( pos.y() < (area.height()*scaleFactor - area.height())*0.5f*(1.0f/scaleFactor) )
|
||||
return;
|
||||
|
||||
// if there is no selected window (that is no window at all) we cannot click it
|
||||
if( !selected_window )
|
||||
return;
|
||||
|
||||
if( pos.x() < (area.width()*scaleFactor - selected_window->width())*0.5f*(1.0f/scaleFactor) )
|
||||
{
|
||||
float availableSize = (area.width()*scaleFactor - area.width())*0.5f*(1.0f/scaleFactor);
|
||||
|
|
Loading…
Reference in a new issue