858 |
/* If win_button_size is nonzero, enable single app mode */ |
/* If win_button_size is nonzero, enable single app mode */ |
859 |
if (xevent.xbutton.y < win_button_size) |
if (xevent.xbutton.y < win_button_size) |
860 |
{ |
{ |
861 |
if (xevent.xbutton.x < win_button_size) |
/* Check from right to left: */ |
862 |
{ |
|
863 |
/* The system menu, do not send to server */ |
if (xevent.xbutton.x >= width - win_button_size) |
|
break; |
|
|
} |
|
|
else if (xevent.xbutton.x >= width - win_button_size) |
|
864 |
{ |
{ |
865 |
/* The close button, continue */ |
/* The close button, continue */ |
866 |
; |
; |
880 |
DefaultScreen(display)); |
DefaultScreen(display)); |
881 |
break; |
break; |
882 |
} |
} |
883 |
|
else |
884 |
|
{ |
885 |
|
/* Ignore clicks to the rest of the border. This includes |
886 |
|
the system menu, but also inhibits double clicks on the |
887 |
|
border itself. */ |
888 |
|
break; |
889 |
|
} |
890 |
} |
} |
891 |
|
|
892 |
rdp_send_input(time(NULL), RDP_INPUT_MOUSE, |
rdp_send_input(time(NULL), RDP_INPUT_MOUSE, |