/[rdesktop]/sourceforge.net/trunk/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/trunk/rdesktop/xwin.c

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

revision 297 by matthewc, Tue Jan 28 12:27:28 2003 UTC revision 301 by matthewc, Thu Jan 30 11:28:50 2003 UTC
# Line 62  static Pixmap backstore; Line 62  static Pixmap backstore;
62  #define PROP_MOTIF_WM_HINTS_ELEMENTS    5  #define PROP_MOTIF_WM_HINTS_ELEMENTS    5
63  typedef struct  typedef struct
64  {  {
65          unsigned long flags;          uint32 flags;
66          unsigned long functions;          uint32 functions;
67          unsigned long decorations;          uint32 decorations;
68          long inputMode;          sint32 inputMode;
69          unsigned long status;          uint32 status;
70  }  }
71  PropMotifWmHints;  PropMotifWmHints;
72    
# Line 315  ui_init(void) Line 315  ui_init(void)
315          if ((width == 0) || (height == 0))          if ((width == 0) || (height == 0))
316          {          {
317                  /* Fetch geometry from _NET_WORKAREA */                  /* Fetch geometry from _NET_WORKAREA */
318                  uint32 xpos, ypos;                  uint32 x, y, cx, cy;
319    
320                  if (get_current_workarea(&xpos, &ypos, &width, &height) < 0)                  if (get_current_workarea(&x, &y, &cx, &cy) == 0)
321                    {
322                            width = cx;
323                            height = cy;
324                    }
325                    else
326                  {                  {
327                          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");
328                          width = 800;                          width = 800;
# Line 1216  ui_draw_glyph(int mixmode, Line 1221  ui_draw_glyph(int mixmode,
1221      }\      }\
1222    if (glyph != NULL)\    if (glyph != NULL)\
1223      {\      {\
1224        ui_draw_glyph (mixmode, x + (short) glyph->offset,\        ui_draw_glyph (mixmode, x + glyph->offset,\
1225                       y + (short) glyph->baseline,\                       y + glyph->baseline,\
1226                       glyph->width, glyph->height,\                       glyph->width, glyph->height,\
1227                       glyph->pixmap, 0, 0, bgcolour, fgcolour);\                       glyph->pixmap, 0, 0, bgcolour, fgcolour);\
1228        if (flags & TEXT2_IMPLICIT_X)\        if (flags & TEXT2_IMPLICIT_X)\

Legend:
Removed from v.297  
changed lines
  Added in v.301

  ViewVC Help
Powered by ViewVC 1.1.26