xfreerdp: add special extended window style WS_EX_DECORATIONS for XRDP

This commit is contained in:
Marc-André Moreau 2013-03-28 23:47:39 -04:00
parent 4ca064352f
commit 3b0afd8b16
2 changed files with 10 additions and 7 deletions

View File

@ -491,15 +491,11 @@ xfWindow* xf_CreateWindow(xfInfo* xfi, rdpWindow* wnd, int x, int y, int width,
window->height = height;
/*
* this window need decorations the WS_EX_APPWINDOW is used to
* tell the client to use local decorations only sent from xrdp
*
* Marc: we need to find another value than WS_EX_APPWINDOW for XRDP
* since it is used by the Microsoft RDP server for programs like cmd.exe
* WS_EX_DECORATIONS is used by XRDP and instructs
* the client to use local window decorations
*/
window->decorations = FALSE;
//window->decorations = (wnd->extendedStyle & WS_EX_APPWINDOW) ? TRUE : FALSE;
window->decorations = (wnd->extendedStyle & WS_EX_DECORATIONS) ? TRUE : FALSE;
window->fullscreen = FALSE;
window->window = wnd;

View File

@ -120,6 +120,13 @@
#define WS_EX_WINDOWEDGE 0x00000100
#endif
/**
* This is a custom extended window style used by XRDP
* instructing the client to use local window decorations
*/
#define WS_EX_DECORATIONS 0x40000000
struct _WINDOW_ORDER_INFO
{
UINT32 windowId;