--- sourceforge.net/trunk/rdesktop/xwin.c 2003/01/30 11:15:00 299 +++ sourceforge.net/trunk/rdesktop/xwin.c 2003/01/30 11:20:30 300 @@ -315,9 +315,14 @@ if ((width == 0) || (height == 0)) { /* Fetch geometry from _NET_WORKAREA */ - uint32 xpos, ypos; + uint32 x, y, cx, cy; - if (get_current_workarea(&xpos, &ypos, &width, &height) < 0) + if (get_current_workarea(&x, &y, &cx, &cy) == 0) + { + width = cx; + height = cy; + } + else { warning("Failed to get workarea: probably your window manager does not support extended hints\n"); width = 800;