/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1049 by astrand, Wed Mar 1 13:54:19 2006 UTC revision 1057 by astrand, Tue Mar 7 08:17:40 2006 UTC
# Line 1259  ui_init(void) Line 1259  ui_init(void)
1259          {          {
1260                  g_width = WidthOfScreen(g_screen);                  g_width = WidthOfScreen(g_screen);
1261                  g_height = HeightOfScreen(g_screen);                  g_height = HeightOfScreen(g_screen);
1262                    g_using_full_workarea = True;
1263          }          }
1264          else if (g_width < 0)          else if (g_width < 0)
1265          {          {
# Line 1272  ui_init(void) Line 1273  ui_init(void)
1273          {          {
1274                  /* Fetch geometry from _NET_WORKAREA */                  /* Fetch geometry from _NET_WORKAREA */
1275                  uint32 x, y, cx, cy;                  uint32 x, y, cx, cy;
                 g_using_full_workarea = True;  
   
1276                  if (get_current_workarea(&x, &y, &cx, &cy) == 0)                  if (get_current_workarea(&x, &y, &cx, &cy) == 0)
1277                  {                  {
1278                          g_width = cx;                          g_width = cx;
1279                          g_height = cy;                          g_height = cy;
1280                            g_using_full_workarea = True;
1281                  }                  }
1282                  else                  else
1283                  {                  {
1284                          warning("Failed to get workarea: probably your window manager does not support extended hints\n");                          warning("Failed to get workarea: probably your window manager does not support extended hints\n");
1285                          g_width = 800;                          g_width = WidthOfScreen(g_screen);
1286                          g_height = 600;                          g_height = HeightOfScreen(g_screen);
1287                  }                  }
1288          }          }
1289    

Legend:
Removed from v.1049  
changed lines
  Added in v.1057

  ViewVC Help
Powered by ViewVC 1.1.26