Don't change cursor for ui::Splitter if the mouse is captured by other widget

This commit is contained in:
David Capello 2015-04-02 16:18:01 -03:00
parent ff650597cb
commit 0ebe764893

View File

@ -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;