656 |
attribs.override_redirect = g_fullscreen; |
attribs.override_redirect = g_fullscreen; |
657 |
|
|
658 |
g_wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), 0, 0, wndwidth, wndheight, |
g_wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), 0, 0, wndwidth, wndheight, |
659 |
0, CopyFromParent, InputOutput, CopyFromParent, |
0, CopyFromParent, InputOutput, CopyFromParent, |
660 |
CWBackPixel | CWBackingStore | CWOverrideRedirect, &attribs); |
CWBackPixel | CWBackingStore | CWOverrideRedirect, &attribs); |
661 |
|
|
662 |
XStoreName(g_display, g_wnd, g_title); |
XStoreName(g_display, g_wnd, g_title); |
663 |
|
|
697 |
if (g_IM != NULL) |
if (g_IM != NULL) |
698 |
{ |
{ |
699 |
g_IC = XCreateIC(g_IM, XNInputStyle, (XIMPreeditNothing | XIMStatusNothing), |
g_IC = XCreateIC(g_IM, XNInputStyle, (XIMPreeditNothing | XIMStatusNothing), |
700 |
XNClientWindow, g_wnd, XNFocusWindow, g_wnd, NULL); |
XNClientWindow, g_wnd, XNFocusWindow, g_wnd, NULL); |
701 |
|
|
702 |
if ((g_IC != NULL) |
if ((g_IC != NULL) |
703 |
&& (XGetICValues(g_IC, XNFilterEvents, &ic_input_mask, NULL) == NULL)) |
&& (XGetICValues(g_IC, XNFilterEvents, &ic_input_mask, NULL) == NULL)) |
885 |
/* The close button, continue */ |
/* The close button, continue */ |
886 |
; |
; |
887 |
} |
} |
888 |
else if (xevent.xbutton.x >= g_width - g_win_button_size * 2) |
else if (xevent.xbutton.x >= |
889 |
|
g_width - g_win_button_size * 2) |
890 |
{ |
{ |
891 |
/* The maximize/restore button. Do not send to |
/* The maximize/restore button. Do not send to |
892 |
server. It might be a good idea to change the |
server. It might be a good idea to change the |
894 |
that rdesktop inhibited this click */ |
that rdesktop inhibited this click */ |
895 |
break; |
break; |
896 |
} |
} |
897 |
else if (xevent.xbutton.x >= g_width - g_win_button_size * 3) |
else if (xevent.xbutton.x >= |
898 |
|
g_width - g_win_button_size * 3) |
899 |
{ |
{ |
900 |
/* The minimize button. Iconify window. */ |
/* The minimize button. Iconify window. */ |
901 |
XIconifyWindow(g_display, g_wnd, |
XIconifyWindow(g_display, g_wnd, |