/[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 988 by astrand, Thu Aug 25 20:27:45 2005 UTC revision 991 by astrand, Fri Aug 26 07:01:02 2005 UTC
# Line 79  static Pixmap g_backstore = 0; Line 79  static Pixmap g_backstore = 0;
79  static BOOL g_moving_wnd;  static BOOL g_moving_wnd;
80  static int g_move_x_offset = 0;  static int g_move_x_offset = 0;
81  static int g_move_y_offset = 0;  static int g_move_y_offset = 0;
82    static BOOL g_using_full_workarea = False;
83    
84  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
85  extern int g_dsp_fd;  extern int g_dsp_fd;
# Line 1091  ui_init(void) Line 1092  ui_init(void)
1092          else if (g_width < 0)          else if (g_width < 0)
1093          {          {
1094                  /* Percent of screen */                  /* Percent of screen */
1095                    if (-g_width >= 100)
1096                            g_using_full_workarea = True;
1097                  g_height = HeightOfScreen(g_screen) * (-g_width) / 100;                  g_height = HeightOfScreen(g_screen) * (-g_width) / 100;
1098                  g_width = WidthOfScreen(g_screen) * (-g_width) / 100;                  g_width = WidthOfScreen(g_screen) * (-g_width) / 100;
1099          }          }
# Line 1098  ui_init(void) Line 1101  ui_init(void)
1101          {          {
1102                  /* Fetch geometry from _NET_WORKAREA */                  /* Fetch geometry from _NET_WORKAREA */
1103                  uint32 x, y, cx, cy;                  uint32 x, y, cx, cy;
1104                    g_using_full_workarea = True;
1105    
1106                  if (get_current_workarea(&x, &y, &cx, &cy) == 0)                  if (get_current_workarea(&x, &y, &cx, &cy) == 0)
1107                  {                  {
# Line 1398  handle_button_event(XEvent xevent, BOOL Line 1402  handle_button_event(XEvent xevent, BOOL
1402                          /* The title bar. */                          /* The title bar. */
1403                          if (xevent.type == ButtonPress)                          if (xevent.type == ButtonPress)
1404                          {                          {
1405                                  if (!g_fullscreen && g_hide_decorations)                                  if (!g_fullscreen && g_hide_decorations && !g_using_full_workarea)
1406                                  {                                  {
1407                                          g_moving_wnd = True;                                          g_moving_wnd = True;
1408                                          g_move_x_offset = xevent.xbutton.x;                                          g_move_x_offset = xevent.xbutton.x;

Legend:
Removed from v.988  
changed lines
  Added in v.991

  ViewVC Help
Powered by ViewVC 1.1.26