diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-03 11:02:36 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-08-12 16:55:15 +0200 |
commit | 16730fe02dae66c8f2782d07a48338fd6624d6a2 (patch) | |
tree | 1de3bc15a277e2daf3edbf666e32911ea6dfb2b0 /vncviewer/DesktopWindow.cxx | |
parent | 608b8a51e58e609664adc9596a83d189f22706df (diff) | |
download | tigervnc-16730fe02dae66c8f2782d07a48338fd6624d6a2.tar.gz tigervnc-16730fe02dae66c8f2782d07a48338fd6624d6a2.zip |
Don't adjust manually sized window
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.
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index b0f79933..2d363781 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -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); |