-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
49 lines (33 loc) · 700 Bytes
/
main.cpp
File metadata and controls
49 lines (33 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
extern "C"
{
#include <X11/Xlib.h>
}
#undef Bool
#undef CursorShape
#undef Expose
#undef KeyPress
#undef KeyRelease
#undef FocusIn
#undef FocusOut
#undef FontChange
#undef None
#undef Status
#undef Unsorted
#include <xcb/xcb.h>
#include "mainwindow.h"
#include "xcbeventlistener.h"
#include <QX11Info>
#include <QApplication>
int main(int argc, char *argv[])
{
// XcbEventListener xcb;
QApplication a(argc, argv);
//qRegisterMetaType<XWidget*>("XWidget*");
MainWindow w;
w.resize(800,600);
w.show();
// let make mainwindow recive appropiet events
// XcbEventListener::reconfigure_window();
// a.installNativeEventFilter(&xcb);
return a.exec();
}