mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-25 03:02:31 +00:00
Fix bug: avoid clicking window borders when a combobox is open
This commit is contained in:
parent
c936a792ab
commit
1f25579f5a
@ -1,5 +1,5 @@
|
|||||||
// Aseprite UI Library
|
// Aseprite UI Library
|
||||||
// Copyright (C) 2001-2013 David Capello
|
// Copyright (C) 2001-2014 David Capello
|
||||||
//
|
//
|
||||||
// This file is released under the terms of the MIT license.
|
// This file is released under the terms of the MIT license.
|
||||||
// Read LICENSE.txt for more information.
|
// Read LICENSE.txt for more information.
|
||||||
@ -108,7 +108,12 @@ void Window::onHitTest(HitTestEvent& ev)
|
|||||||
{
|
{
|
||||||
HitTest ht = HitTestNowhere;
|
HitTest ht = HitTestNowhere;
|
||||||
|
|
||||||
if (!m_isMoveable) {
|
// If this window is not movable or we are not completely visible.
|
||||||
|
if (!m_isMoveable ||
|
||||||
|
// TODO check why this is necessary, there should be a bug in
|
||||||
|
// the manager where we are receiving mouse events and are not
|
||||||
|
// the top most window.
|
||||||
|
getManager()->pick(ev.getPoint()) != this) {
|
||||||
ev.setHit(ht);
|
ev.setHit(ht);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user