aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-04-27 12:48:47 +0200
committerPierre Ossman <ossman@cendio.se>2015-04-27 12:48:47 +0200
commit135906e4b2c3f14f52eff8b89e8e203c11a63966 (patch)
tree7bf81b1257158eaa751df3a19347ead0d834044b /vncviewer/DesktopWindow.cxx
parent056c153209fea793ce00986cf102a5b587e28369 (diff)
downloadtigervnc-135906e4b2c3f14f52eff8b89e8e203c11a63966.tar.gz
tigervnc-135906e4b2c3f14f52eff8b89e8e203c11a63966.zip
Remove parameter "hasBeenSet" logic
It doesn't really make sense anymore given that settings might come from the GUI or configuration and not only the command line.
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index eb62edd6..bba502b2 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -85,7 +85,7 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name,
// coordinates relative to the right edge / bottom edge) at this
// time.
int geom_x = 0, geom_y = 0;
- if (geometry.hasBeenSet()) {
+ if (strcmp(geometry, "") != 0) {
int matched;
matched = sscanf(geometry.getValueStr(), "+%d+%d", &geom_x, &geom_y);
if (matched == 2) {
@@ -606,12 +606,12 @@ void DesktopWindow::maximizeWindow()
void DesktopWindow::handleDesktopSize()
{
- if (desktopSize.hasBeenSet()) {
+ if (strcmp(desktopSize, "") != 0) {
int width, height;
// An explicit size has been requested
- if (sscanf(desktopSize.getValueStr(), "%dx%d", &width, &height) != 2)
+ if (sscanf(desktopSize, "%dx%d", &width, &height) != 2)
return;
remoteResize(width, height);