mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] fix imgui layout error
This commit is contained in:
@@ -518,25 +518,37 @@ int Render::Run() {
|
||||
ImGui::PopStyleColor();
|
||||
|
||||
TitleBar();
|
||||
}
|
||||
|
||||
if (connection_established_ && streaming_ && is_client_mode_) {
|
||||
if (!resizable_) {
|
||||
resizable_ = !resizable_;
|
||||
SDL_SetWindowResizable(main_window_, SDL_TRUE);
|
||||
if (connection_established_ && streaming_ && is_client_mode_) {
|
||||
if (!resizable_) {
|
||||
resizable_ = !resizable_;
|
||||
SDL_SetWindowResizable(main_window_, SDL_TRUE);
|
||||
}
|
||||
ControlWindow();
|
||||
} else {
|
||||
if (resizable_) {
|
||||
resizable_ = !resizable_;
|
||||
SDL_SetWindowResizable(main_window_, SDL_FALSE);
|
||||
}
|
||||
MainWindow();
|
||||
}
|
||||
|
||||
ControlWindow();
|
||||
} else {
|
||||
if (resizable_) {
|
||||
resizable_ = !resizable_;
|
||||
SDL_SetWindowResizable(main_window_, SDL_FALSE);
|
||||
}
|
||||
MainWindow();
|
||||
}
|
||||
|
||||
if (!fullscreen_button_pressed_) {
|
||||
ImGui::End();
|
||||
} else {
|
||||
if (connection_established_ && streaming_ && is_client_mode_) {
|
||||
if (!resizable_) {
|
||||
resizable_ = !resizable_;
|
||||
SDL_SetWindowResizable(main_window_, SDL_TRUE);
|
||||
}
|
||||
|
||||
ControlWindow();
|
||||
} else {
|
||||
if (resizable_) {
|
||||
resizable_ = !resizable_;
|
||||
SDL_SetWindowResizable(main_window_, SDL_FALSE);
|
||||
}
|
||||
MainWindow();
|
||||
}
|
||||
}
|
||||
|
||||
// create connection
|
||||
|
||||
Reference in New Issue
Block a user