Skip to content

Commit

Permalink
Don't adjust manually sized window
Browse files Browse the repository at this point in the history
It's unclear why this code was ever added, and it can be very confusing
that the window partially adjusts itself. The code is also in conflict
with the earlier comment that states we'll leave the window size alone
if it didn't perfectly match before the resize.
  • Loading branch information
CendioOssman committed Aug 12, 2024
1 parent 608b8a5 commit 16730fe
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vncviewer/DesktopWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,6 @@ void DesktopWindow::resizeFramebuffer(int new_w, int new_h)
if (!fullscreen_active() && !maximized) {
if ((w() == viewport->w()) && (h() == viewport->h()))
size(new_w, new_h);
else {
// Make sure the window isn't too big. We do this manually because
// we have to disable the window size restriction (and it isn't
// entirely trustworthy to begin with).
if ((w() > new_w) || (h() > new_h))
size(__rfbmin(w(), new_w), __rfbmin(h(), new_h));
}
}

viewport->size(new_w, new_h);
Expand Down

0 comments on commit 16730fe

Please sign in to comment.