1
/*****************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
6
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
8
You can Freely distribute this program under the GNU General Public
9
License. See the file "COPYING" for the exact licensing terms.
10
******************************************************************/
13
#include <qapplication.h>
17
namespace KWinInternal
26
Atom atoms_return[max];
29
atoms[n] = &kwin_running;
30
names[n++] = (char *) "KWIN_RUNNING";
32
atoms[n] = &wm_protocols;
33
names[n++] = (char *) "WM_PROTOCOLS";
35
atoms[n] = &wm_delete_window;
36
names[n++] = (char *) "WM_DELETE_WINDOW";
38
atoms[n] = &wm_take_focus;
39
names[n++] = (char *) "WM_TAKE_FOCUS";
41
atoms[n] = &wm_change_state;
42
names[n++] = (char *) "WM_CHANGE_STATE";
44
atoms[n] = &wm_client_leader;
45
names[n++] = (char *) "WM_CLIENT_LEADER";
47
atoms[n] = &motif_wm_hints;
48
names[n++] = (char *) "_MOTIF_WM_HINTS";
50
atoms[n] = &net_wm_context_help;
51
names[n++] = (char *) "_NET_WM_CONTEXT_HELP";
53
atoms[n] = &net_wm_ping;
54
names[n++] = (char *) "_NET_WM_PING";
56
atoms[n] = &kde_wm_change_state;
57
names[n++] = (char *) "_KDE_WM_CHANGE_STATE";
59
atoms[n] = &net_wm_user_time;
60
names[n++] = (char *) "_NET_WM_USER_TIME";
61
atoms[n] = &kde_net_wm_user_creation_time;
62
names[n++] = (char *) "_KDE_NET_WM_USER_CREATION_TIME";
64
atoms[n] = &kde_system_tray_embedding;
65
names[n++] = (char*) "_KDE_SYSTEM_TRAY_EMBEDDING";
67
atoms[n] = &net_wm_take_activity;
68
names[n++] = (char*) "_NET_WM_TAKE_ACTIVITY";
70
atoms[n] = &net_wm_window_opacity;
71
names[n++] = (char*) "_KDE_WM_WINDOW_OPACITY";
73
atoms[n] = &net_wm_window_shadow;
74
names[n++] = (char*) "_KDE_WM_WINDOW_SHADOW";
76
atoms[n] = &net_wm_window_shade;
77
names[n++] = (char*) "_KDE_WM_WINDOW_SHADE";
79
atoms[n] = &net_wm_window_shapable;
80
names[n++] = (char*) "_KDE_WM_WINDOW_SHAPABLE";
82
atoms[n] = &net_wm_window_decohash;
83
names[n++] = (char*) "_KDE_WM_WINDOW_DECOHASH";
87
names[n++] = (char *) "_DT_SM_WINDOW_INFO";
89
atoms[n] = &xdnd_aware;
90
names[n++] = (char*) "XdndAware";
91
atoms[n] = &xdnd_position;
92
names[n++] = (char*) "XdndPosition";
94
atoms[n] = &net_frame_extents;
95
names[n++] = (char*) "_NET_FRAME_EXTENTS";
96
atoms[n] = &kde_net_wm_frame_strut;
97
names[n++] = (char*) "_KDE_NET_WM_FRAME_STRUT";
101
XInternAtoms( qt_xdisplay(), names, n, FALSE, atoms_return );
102
for (int i = 0; i < n; i++ )
103
*atoms[i] = atoms_return[i];