13 #include <tqapplication.h>
17 namespace KWinInternal
26 Atom atoms_return[max];
29 atoms[n] = &twin_running;
30 names[n++] = (
char *)
"TWIN_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 *)
"_TDE_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 *)
"_TDE_NET_WM_USER_CREATION_TIME";
64 atoms[n] = &kde_system_tray_embedding;
65 names[n++] = (
char*)
"_TDE_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*)
"_NET_WM_WINDOW_OPACITY";
73 atoms[n] = &net_wm_window_shadow;
74 names[n++] = (
char*)
"_TDE_WM_WINDOW_SHADOW";
76 atoms[n] = &net_wm_window_shade;
77 names[n++] = (
char*)
"_TDE_WM_WINDOW_SHADE";
79 atoms[n] = &net_wm_window_shapable;
80 names[n++] = (
char*)
"_TDE_WM_WINDOW_SHAPABLE";
82 atoms[n] = &net_wm_window_decohash;
83 names[n++] = (
char*)
"_TDE_WM_WINDOW_DECOHASH";
85 atoms[n] = &net_wm_system_modal_notification;
86 names[n++] = (
char*)
"_TDE_WM_MODAL_SYS_NOTIFICATION";
90 names[n++] = (
char *)
"_DT_SM_WINDOW_INFO";
92 names[n++] = (
char *)
"_MOTIF_WM_INFO";
94 atoms[n] = &xdnd_aware;
95 names[n++] = (
char*)
"XdndAware";
96 atoms[n] = &xdnd_position;
97 names[n++] = (
char*)
"XdndPosition";
99 atoms[n] = &net_frame_extents;
100 names[n++] = (
char*)
"_NET_FRAME_EXTENTS";
101 atoms[n] = &kde_net_wm_frame_strut;
102 names[n++] = (
char*)
"_TDE_NET_WM_FRAME_STRUT";
106 XInternAtoms( tqt_xdisplay(), names, n, FALSE, atoms_return );
107 for (
int i = 0; i < n; i++ )
108 *atoms[i] = atoms_return[i];