mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[fix] fix black screen after close the connection
This commit is contained in:
@@ -503,8 +503,9 @@ int Render::Run() {
|
|||||||
ImGui::SetNextWindowPos(ImVec2(0, 0), ImGuiCond_Always);
|
ImGui::SetNextWindowPos(ImVec2(0, 0), ImGuiCond_Always);
|
||||||
ImGui::SetNextWindowSize(
|
ImGui::SetNextWindowSize(
|
||||||
ImVec2(main_window_width_,
|
ImVec2(main_window_width_,
|
||||||
streaming_ ? (fullscreen_button_pressed_ ? 0 : title_bar_height_)
|
(connection_established_ && streaming_ && is_client_mode_)
|
||||||
: main_window_height_default_),
|
? (fullscreen_button_pressed_ ? 0 : title_bar_height_)
|
||||||
|
: main_window_height_default_),
|
||||||
ImGuiCond_Always);
|
ImGuiCond_Always);
|
||||||
ImGui::Begin("Render", nullptr,
|
ImGui::Begin("Render", nullptr,
|
||||||
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar |
|
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar |
|
||||||
@@ -516,7 +517,7 @@ int Render::Run() {
|
|||||||
TitleBar();
|
TitleBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (streaming_ && is_client_mode_) {
|
if (connection_established_ && streaming_ && is_client_mode_) {
|
||||||
if (!resizable_) {
|
if (!resizable_) {
|
||||||
resizable_ = !resizable_;
|
resizable_ = !resizable_;
|
||||||
SDL_SetWindowResizable(main_window_, SDL_TRUE);
|
SDL_SetWindowResizable(main_window_, SDL_TRUE);
|
||||||
|
|||||||
2
thirdparty/projectx
vendored
2
thirdparty/projectx
vendored
Submodule thirdparty/projectx updated: bbd05bcb8d...c67ce332f6
Reference in New Issue
Block a user