mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-31 00:32:48 +00:00
Don't change cursor for ui::Splitter if the mouse is captured by other widget
This commit is contained in:
parent
ff650597cb
commit
0ebe764893
@ -11,6 +11,7 @@
|
||||
#include "ui/splitter.h"
|
||||
|
||||
#include "ui/load_layout_event.h"
|
||||
#include "ui/manager.h"
|
||||
#include "ui/message.h"
|
||||
#include "ui/preferred_size_event.h"
|
||||
#include "ui/resize_event.h"
|
||||
@ -132,7 +133,7 @@ bool Splitter::onProcessMessage(Message* msg)
|
||||
break;
|
||||
|
||||
case kSetCursorMessage:
|
||||
if (isEnabled()) {
|
||||
if (isEnabled() && (!getManager()->getCapture() || hasCapture())) {
|
||||
gfx::Point mousePos = static_cast<MouseMessage*>(msg)->position();
|
||||
Widget* c1, *c2;
|
||||
int x1, y1, x2, y2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user