Skip to content

Commit

Permalink
Merge branch 'main' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Nov 21, 2024
2 parents 9bc16e9 + 45c2a59 commit ae9e358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/script/dialog_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class DialogWindow : public WindowWithHand {
if (m_handTool && Editor::activeEditor()) {
enableHandTool(true);
}
WindowWithHand::onOpen(ev);
}

void onBeforeClose(CloseEvent& ev) override {
Expand Down
7 changes: 5 additions & 2 deletions src/ui/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,11 @@ void Window::onSetText()
void Window::onVisible(bool visible)
{
Widget::onVisible(visible);
if (get_multiple_displays() && m_display) {
display()->nativeWindow()->setVisible(visible);
Display* display = this->display();
if (ownDisplay() &&
display &&
display->nativeWindow()) {
display->nativeWindow()->setVisible(visible);
}
}

Expand Down

0 comments on commit ae9e358

Please sign in to comment.