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
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*********************************************************************/
35
Atom atoms_return[max];
38
atoms[n] = &kwin_running;
39
names[n++] = (char *) "KWIN_RUNNING";
41
atoms[n] = &activities;
42
names[n++] = (char *) "_KDE_NET_WM_ACTIVITIES";
44
atoms[n] = &wm_protocols;
45
names[n++] = (char *) "WM_PROTOCOLS";
47
atoms[n] = &wm_delete_window;
48
names[n++] = (char *) "WM_DELETE_WINDOW";
50
atoms[n] = &wm_take_focus;
51
names[n++] = (char *) "WM_TAKE_FOCUS";
53
atoms[n] = &wm_change_state;
54
names[n++] = (char *) "WM_CHANGE_STATE";
56
atoms[n] = &wm_client_leader;
57
names[n++] = (char *) "WM_CLIENT_LEADER";
59
atoms[n] = &wm_window_role;
60
names[n++] = (char *) "WM_WINDOW_ROLE";
63
names[n++] = (char *) "WM_STATE";
65
atoms[n] = &sm_client_id;
66
names[n++] = (char *) "SM_CLIENT_ID";
68
atoms[n] = &motif_wm_hints;
69
names[n++] = (char *) "_MOTIF_WM_HINTS";
71
atoms[n] = &net_wm_context_help;
72
names[n++] = (char *) "_NET_WM_CONTEXT_HELP";
74
atoms[n] = &net_wm_ping;
75
names[n++] = (char *) "_NET_WM_PING";
77
atoms[n] = &kde_wm_change_state;
78
names[n++] = (char *) "_KDE_WM_CHANGE_STATE";
80
atoms[n] = &net_wm_user_time;
81
names[n++] = (char *) "_NET_WM_USER_TIME";
82
atoms[n] = &kde_net_wm_user_creation_time;
83
names[n++] = (char *) "_KDE_NET_WM_USER_CREATION_TIME";
85
atoms[n] = &kde_system_tray_embedding;
86
names[n++] = (char*) "_KDE_SYSTEM_TRAY_EMBEDDING";
88
atoms[n] = &net_wm_take_activity;
89
names[n++] = (char*) "_NET_WM_TAKE_ACTIVITY";
91
atoms[n] = &net_wm_window_opacity;
92
names[n++] = (char*) "_NET_WM_WINDOW_OPACITY";
96
names[n++] = (char *) "_DT_SM_WINDOW_INFO";
99
names[n++] = (char *) "_MOTIF_WM_INFO"; // #172028
101
atoms[n] = &xdnd_aware;
102
names[n++] = (char*) "XdndAware";
103
atoms[n] = &xdnd_position;
104
names[n++] = (char*) "XdndPosition";
106
atoms[n] = &net_frame_extents;
107
names[n++] = (char*) "_NET_FRAME_EXTENTS";
108
atoms[n] = &kde_net_wm_frame_strut;
109
names[n++] = (char*) "_KDE_NET_WM_FRAME_STRUT";
111
atoms[n] = &net_wm_sync_request_counter;
112
names[n++] = (char*) "_NET_WM_SYNC_REQUEST_COUNTER";
114
atoms[n] = &net_wm_sync_request;
115
names[n++] = (char*) "_NET_WM_SYNC_REQUEST";
117
atoms[n] = &kde_net_wm_block_compositing;
118
names[n++] = (char*) "_KDE_NET_WM_BLOCK_COMPOSITING";
120
atoms[n] = &kde_net_wm_shadow;
121
names[n++] = (char*) "_KDE_NET_WM_SHADOW";
125
XInternAtoms(display(), names, n, false, atoms_return);
126
for (int i = 0; i < n; i++)
127
*atoms[i] = atoms_return[i];