git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5000 3789f03b-4d11-0410-bbf8-ca57d06f2519tags/v1.2.90
matched = sscanf(geometry.getValueStr(), "%dx%d+%d+%d", &geom_w, &geom_h, &geom_x, &geom_y); | matched = sscanf(geometry.getValueStr(), "%dx%d+%d+%d", &geom_w, &geom_h, &geom_x, &geom_y); | ||||
switch (matched) { | switch (matched) { | ||||
case 4: | case 4: | ||||
force_position(1); | |||||
/* fall through */ | |||||
force_position(1); | |||||
/* fall through */ | |||||
case 2: | case 2: | ||||
w = geom_w; | |||||
h = geom_h; | |||||
break; | |||||
w = geom_w; | |||||
h = geom_h; | |||||
break; | |||||
default: | default: | ||||
geom_x = geom_y = 0; | |||||
vlog.error("Invalid geometry specified!"); | |||||
geom_x = geom_y = 0; | |||||
vlog.error("Invalid geometry specified!"); | |||||
} | } | ||||
} | } | ||||
} | } |