Skip to content

Commit

Permalink
Merge branch 'topic/qt6' of github.com:rcaelers/workrave into topic/qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaelers committed Feb 15, 2025
2 parents c044a23 + fd213e4 commit 17738d3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ui/app/toolkits/qt/BreakWindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,13 @@ BreakWindow::start()
TRACE_ENTRY();
// TODO: platform->foreground();

#if defined(HAVE_WAYLAND)
if (window_manager)
{
window_manager->init_surface(this, screen, true);
}
#endif

refresh();
show();
center();
Expand Down Expand Up @@ -488,6 +495,13 @@ BreakWindow::stop()
frame->set_frame_flashing(0);
}

#if defined(HAVE_WAYLAND)
if (window_manager)
{
window_manager->clear_surfaces();
}
#endif

if (block_window != nullptr)
{
block_window->showNormal();
Expand Down

0 comments on commit 17738d3

Please sign in to comment.