Cleaned up wnd.h includes

This commit is contained in:
Armin Novak 2021-12-20 12:12:06 +01:00 committed by David Fort
parent a713d5417e
commit fd5ac4eed0
4 changed files with 4 additions and 12 deletions

View File

@ -235,7 +235,7 @@ struct xf_context
Atom _NET_WORKAREA;
Atom _NET_SUPPORTED;
ATOM _NET_SUPPORTING_WM_CHECK;
Atom _NET_SUPPORTING_WM_CHECK;
Atom _NET_WM_STATE;
Atom _NET_WM_STATE_FULLSCREEN;

View File

@ -21,7 +21,6 @@
#ifndef FREERDP_RAIL_GLOBAL_H
#define FREERDP_RAIL_GLOBAL_H
#include <winpr/wnd.h>
#include <winpr/windows.h>
#include <freerdp/types.h>

View File

@ -22,25 +22,17 @@
#include <winpr/crt.h>
#include <winpr/ssl.h>
#include <winpr/wnd.h>
#include <winpr/path.h>
#include <winpr/cmdline.h>
#include <winpr/winsock.h>
#include <winpr/tools/makecert.h>
#ifdef _WIN32
static BOOL g_MessagePump = TRUE;
#else
static BOOL g_MessagePump = FALSE;
#endif
#include <freerdp/server/shadow.h>
#define TAG SERVER_TAG("shadow")
int main(int argc, char** argv)
{
MSG msg;
int status = 0;
DWORD dwExitCode;
rdpSettings* settings;
@ -151,14 +143,16 @@ int main(int argc, char** argv)
goto fail_server_start;
}
if (g_MessagePump)
#ifdef _WIN32
{
MSG msg = { 0 };
while (GetMessage(&msg, 0, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
#endif
WaitForSingleObject(server->thread, INFINITE);

View File

@ -26,7 +26,6 @@
#include <winpr/crt.h>
#include <winpr/ssl.h>
#include <winpr/wnd.h>
#include <winpr/path.h>
#include <winpr/cmdline.h>
#include <winpr/winsock.h>