mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Show the kMoveCursor in ColorPopup client area
This commit is contained in:
parent
35764bd969
commit
5da6dc514a
@ -309,6 +309,23 @@ app::Color ColorPopup::getColor() const
|
||||
return m_color;
|
||||
}
|
||||
|
||||
bool ColorPopup::onProcessMessage(ui::Message* msg)
|
||||
{
|
||||
switch (msg->type()) {
|
||||
case kSetCursorMessage: {
|
||||
if (m_canPin) {
|
||||
gfx::Point mousePos = static_cast<MouseMessage*>(msg)->position();
|
||||
if (hitTest(mousePos) == HitTestCaption) {
|
||||
set_mouse_cursor(kMoveCursor);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return PopupWindowPin::onProcessMessage(msg);
|
||||
}
|
||||
|
||||
void ColorPopup::onWindowResize()
|
||||
{
|
||||
PopupWindowPin::onWindowResize();
|
||||
|
@ -43,6 +43,7 @@ namespace app {
|
||||
obs::signal<void(const app::Color&)> ColorChange;
|
||||
|
||||
protected:
|
||||
bool onProcessMessage(ui::Message* msg) override;
|
||||
void onWindowResize() override;
|
||||
void onMakeFloating() override;
|
||||
void onMakeFixed() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user