* If fullscreen mode, set g_using_full_workarea = True;

* When using -g workarea, if workarea fetch fails, do not set
  g_using_full_workarea. Fall back to size of entire screen, instead
  of 800x600.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1056 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-07 08:17:40 +00:00
parent 782e679649
commit b4c4c0195f

8
xwin.c
View File

@ -1259,6 +1259,7 @@ ui_init(void)
{
g_width = WidthOfScreen(g_screen);
g_height = HeightOfScreen(g_screen);
g_using_full_workarea = True;
}
else if (g_width < 0)
{
@ -1272,18 +1273,17 @@ ui_init(void)
{
/* Fetch geometry from _NET_WORKAREA */
uint32 x, y, cx, cy;
g_using_full_workarea = True;
if (get_current_workarea(&x, &y, &cx, &cy) == 0)
{
g_width = cx;
g_height = cy;
g_using_full_workarea = True;
}
else
{
warning("Failed to get workarea: probably your window manager does not support extended hints\n");
g_width = 800;
g_height = 600;
g_width = WidthOfScreen(g_screen);
g_height = HeightOfScreen(g_screen);
}
}