2 * FreeRDP: A Remote Desktop Protocol Client
5 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <X11/Xutil.h>
25 #include <freerdp/freerdp.h>
26 #include <freerdp/chanman/chanman.h>
27 #include <freerdp/gdi/gdi.h>
28 #include <freerdp/rail/rail.h>
29 #include <freerdp/cache/cache.h>
31 typedef struct xf_info xfInfo;
33 #include "xf_window.h"
34 #include "xf_monitor.h"
36 #define SET_XFI(_instance, _xfi) (_instance)->param1 = _xfi
37 #define GET_XFI(_instance) ((xfInfo*) ((_instance)->param1))
39 #define SET_CHANMAN(_instance, _chanman) (_instance)->param2 = _chanman
40 #define GET_CHANMAN(_instance) ((rdpChanMan*) ((_instance)->param2))
49 typedef struct xf_WorkArea xfWorkArea;
87 boolean fullscreen_toggle;
88 uint32 keyboard_layout_id;
89 boolean pressed_keys[256];
90 XModifierKeymap* modifier_map;
91 XSetWindowAttributes attribs;
92 boolean complex_regions;
93 VIRTUAL_SCREEN vscreen;
94 uint8* bmp_codec_none;
99 Atom _NET_CURRENT_DESKTOP;
103 Atom _NET_WM_STATE_FULLSCREEN;
104 Atom _NET_WM_STATE_SKIP_TASKBAR;
105 Atom _NET_WM_STATE_SKIP_PAGER;
107 Atom _NET_WM_WINDOW_TYPE;
108 Atom _NET_WM_WINDOW_TYPE_NORMAL;
109 Atom _NET_WM_WINDOW_TYPE_DIALOG;
110 Atom _NET_WM_WINDOW_TYPE_UTILITY;
112 Atom _NET_WM_MOVERESIZE;
115 void xf_toggle_fullscreen(xfInfo* xfi);
116 boolean xf_post_connect(freerdp* instance);
118 #ifdef WITH_DEBUG_X11
119 #define DEBUG_X11(fmt, ...) DEBUG_CLASS(X11, fmt, ## __VA_ARGS__)
121 #define DEBUG_X11(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
124 #ifdef WITH_DEBUG_X11_LOCAL_MOVESIZE
125 #define DEBUG_X11_LMS(fmt, ...) DEBUG_CLASS(X11_LMS, fmt, ## __VA_ARGS__)
127 #define DEBUG_X11_LMS(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
131 #endif /* __XFREERDP_H */