* IsMinimized() now locks the window. This should fix bug #4274.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
47000651b5
commit
4aa6ec093b
|
@ -1983,6 +1983,10 @@ BWindow::ConvertFromScreen(BRect rect) const
|
|||
bool
|
||||
BWindow::IsMinimized() const
|
||||
{
|
||||
BAutolock locker(const_cast<BWindow*>(this));
|
||||
if (!locker.IsLocked())
|
||||
return false;
|
||||
|
||||
// Hiding takes precendence over minimization!!!
|
||||
if (IsHidden())
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue