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/gdi/dc.h>
29 #include <freerdp/gdi/region.h>
30 #include <freerdp/rail/rail.h>
31 #include <freerdp/cache/cache.h>
33 typedef struct xf_info xfInfo;
35 #include "xf_window.h"
36 #include "xf_monitor.h"
38 #define SET_XFI(_instance, _xfi) (_instance)->param1 = _xfi
39 #define GET_XFI(_instance) ((xfInfo*) ((_instance)->param1))
41 #define SET_CHANMAN(_instance, _chanman) (_instance)->param2 = _chanman
42 #define GET_CHANMAN(_instance) ((rdpChanMan*) ((_instance)->param2))
51 typedef struct xf_WorkArea xfWorkArea;
76 boolean grab_keyboard;
90 uint8* primary_buffer;
95 boolean fullscreen_toggle;
96 uint32 keyboard_layout_id;
97 boolean pressed_keys[256];
98 XModifierKeymap* modifier_map;
99 XSetWindowAttributes attribs;
100 boolean complex_regions;
101 VIRTUAL_SCREEN vscreen;
102 uint8* bmp_codec_none;
103 uint8* bmp_codec_nsc;
107 void* clipboard_context;
109 Atom _MOTIF_WM_HINTS;
110 Atom _NET_CURRENT_DESKTOP;
114 Atom _NET_WM_STATE_FULLSCREEN;
115 Atom _NET_WM_STATE_SKIP_TASKBAR;
116 Atom _NET_WM_STATE_SKIP_PAGER;
118 Atom _NET_WM_WINDOW_TYPE;
119 Atom _NET_WM_WINDOW_TYPE_NORMAL;
120 Atom _NET_WM_WINDOW_TYPE_DIALOG;
121 Atom _NET_WM_WINDOW_TYPE_UTILITY;
123 Atom _NET_WM_MOVERESIZE;
126 Atom WM_DELETE_WINDOW;
129 void xf_toggle_fullscreen(xfInfo* xfi);
130 boolean xf_post_connect(freerdp* instance);
132 #ifdef WITH_DEBUG_X11
133 #define DEBUG_X11(fmt, ...) DEBUG_CLASS(X11, fmt, ## __VA_ARGS__)
135 #define DEBUG_X11(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
138 #ifdef WITH_DEBUG_X11_LOCAL_MOVESIZE
139 #define DEBUG_X11_LMS(fmt, ...) DEBUG_CLASS(X11_LMS, fmt, ## __VA_ARGS__)
141 #define DEBUG_X11_LMS(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
145 #endif /* __XFREERDP_H */