@@ -536,13 +536,15 @@ struct page_error_widget : public ui::widget_flex {
536536 active_prg->animate_to (pressed ? 1 .0f : 0 .0f );
537537
538538 if (ctx.mouse_clicked_on (this )) {
539- owner_rt->post_loop_thread_task ([]() {
540- client::ClientContext::get_instance ().webrtc_service = nullptr ;
541- client::ClientContext::get_instance ()
542- .root_widget ->switch_to_gathering_page ();
543- Sleep (50 );
544- client::ClientContext::get_instance ().init_webrtc_service ();
545- }, true );
539+ owner_rt->post_loop_thread_task (
540+ []() {
541+ client::ClientContext::get_instance ().webrtc_service = nullptr ;
542+ client::ClientContext::get_instance ()
543+ .root_widget ->switch_to_gathering_page ();
544+ Sleep (50 );
545+ client::ClientContext::get_instance ().init_webrtc_service ();
546+ },
547+ true );
546548 }
547549
548550 ui::widget::update (ctx);
@@ -613,6 +615,14 @@ int main() {
613615 rt.root ->width ->reset_to (320 );
614616 rt.root ->height ->reset_to (500 );
615617 rt.show ();
618+
619+ auto hWnd = (HWND)rt.hwnd ();
620+ LONG_PTR style = GetWindowLongPtr (hWnd, GWL_EXSTYLE);
621+ style &= ~(WS_EX_TOOLWINDOW | WS_EX_TOPMOST);
622+ SetWindowLongPtr (hWnd, GWL_EXSTYLE, style);
623+ SetWindowPos (hWnd, HWND_NOTOPMOST, 0 , 0 , 0 , 0 ,
624+ SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);
625+
616626 rt.start_loop ();
617627 TerminateProcess (GetCurrentProcess (), 0 );
618628 }
0 commit comments