/[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 319 by astrand, Mon Feb 10 13:02:57 2003 UTC revision 328 by astrand, Tue Feb 18 13:03:51 2003 UTC
# Line 32  extern BOOL grab_keyboard; Line 32  extern BOOL grab_keyboard;
32  extern BOOL hide_decorations;  extern BOOL hide_decorations;
33  extern char title[];  extern char title[];
34  extern int server_bpp;  extern int server_bpp;
35    extern int win_button_size;
36  BOOL enable_compose = False;  BOOL enable_compose = False;
37  BOOL focused;  BOOL focused;
38  BOOL mouse_in_wnd;  BOOL mouse_in_wnd;
# Line 854  xwin_process_events(void) Line 855  xwin_process_events(void)
855                                  if (button == 0)                                  if (button == 0)
856                                          break;                                          break;
857    
858                                    /* If win_button_size is nonzero, enable single app mode */
859                                    if (xevent.xbutton.y < win_button_size)
860                                    {
861                                            if (xevent.xbutton.x >= width - win_button_size)
862                                            {
863                                                    /* The close button, do nothing */
864                                                    ;
865                                            }
866                                            else if (xevent.xbutton.x >= width - win_button_size * 2)
867                                            {
868                                                    /* The maximize/restore button. Do not send to
869                                                       server.  It might be a good idea to change the
870                                                       cursor or give some other visible indication
871                                                       that rdesktop inhibited this click */
872                                                    break;
873                                            }
874                                            else if (xevent.xbutton.x >= width - win_button_size * 3)
875                                            {
876                                                    /* The minimize button. Iconify window. */
877                                                    XIconifyWindow(display, wnd,
878                                                                   DefaultScreen(display));
879                                                    break;
880                                            }
881                                    }
882    
883                                  rdp_send_input(time(NULL), RDP_INPUT_MOUSE,                                  rdp_send_input(time(NULL), RDP_INPUT_MOUSE,
884                                                 flags | button, xevent.xbutton.x, xevent.xbutton.y);                                                 flags | button, xevent.xbutton.x, xevent.xbutton.y);
885                                  break;                                  break;

Legend:
Removed from v.319  
changed lines
  Added in v.328

  ViewVC Help
Powered by ViewVC 1.1.26