2000-03-24 22:23:02 +00:00
|
|
|
/*****************************************************************
|
|
|
|
kwin - the KDE window manager
|
2000-04-06 18:29:04 +00:00
|
|
|
|
2000-03-24 22:23:02 +00:00
|
|
|
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|
|
|
******************************************************************/
|
1999-08-19 23:26:42 +00:00
|
|
|
#include <qapplication.h>
|
|
|
|
#include "atoms.h"
|
|
|
|
|
|
|
|
Atoms::Atoms()
|
|
|
|
{
|
|
|
|
|
1999-11-28 20:10:58 +00:00
|
|
|
const int max = 20;
|
|
|
|
Atom* atoms[max];
|
|
|
|
char* names[max];
|
|
|
|
Atom atoms_return[max];
|
|
|
|
int n = 0;
|
1999-12-01 22:09:32 +00:00
|
|
|
|
2000-06-08 17:05:51 +00:00
|
|
|
atoms[n] = &kwin_running;
|
|
|
|
names[n++] = (char *) "KWIN_RUNNING";
|
|
|
|
|
1999-11-28 20:10:58 +00:00
|
|
|
atoms[n] = &wm_protocols;
|
1999-12-03 21:08:07 +00:00
|
|
|
names[n++] = (char *) "WM_PROTOCOLS";
|
1999-12-01 22:09:32 +00:00
|
|
|
|
1999-11-28 20:10:58 +00:00
|
|
|
atoms[n] = &wm_delete_window;
|
1999-12-03 21:08:07 +00:00
|
|
|
names[n++] = (char *) "WM_DELETE_WINDOW";
|
1999-12-01 22:09:32 +00:00
|
|
|
|
1999-11-28 20:10:58 +00:00
|
|
|
atoms[n] = &wm_take_focus;
|
1999-12-03 21:08:07 +00:00
|
|
|
names[n++] = (char *) "WM_TAKE_FOCUS";
|
1999-12-01 22:09:32 +00:00
|
|
|
|
1999-11-28 20:10:58 +00:00
|
|
|
atoms[n] = &wm_change_state;
|
1999-12-03 21:08:07 +00:00
|
|
|
names[n++] = (char *) "WM_CHANGE_STATE";
|
1999-12-01 22:09:32 +00:00
|
|
|
|
2001-03-19 15:35:07 +00:00
|
|
|
atoms[n] = &wm_client_leader;
|
|
|
|
names[n++] = (char *) "WM_CLIENT_LEADER";
|
|
|
|
|
|
|
|
atoms[n] = &wm_save_yourself;
|
|
|
|
names[n++] = (char *) "WM_SAVE_YOURSELF";
|
|
|
|
|
2000-04-06 18:29:04 +00:00
|
|
|
atoms[n] = &motif_wm_hints;
|
|
|
|
names[n++] = (char *) "_MOTIF_WM_HINTS";
|
1999-12-01 22:09:32 +00:00
|
|
|
|
|
|
|
atoms[n] = &net_wm_context_help;
|
1999-12-03 21:08:07 +00:00
|
|
|
names[n++] = (char *) "_NET_WM_CONTEXT_HELP";
|
2000-03-24 22:23:02 +00:00
|
|
|
|
2000-06-24 17:58:10 +00:00
|
|
|
atoms[n] = &kde_wm_change_state;
|
|
|
|
names[n++] = (char *) "_KDE_WM_CHANGE_STATE";
|
2001-03-29 17:21:53 +00:00
|
|
|
|
|
|
|
Atom fake;
|
|
|
|
atoms[n] = &fake;
|
|
|
|
names[n++] = (char *) "DT_SM_WINDOW_INFO";
|
2000-06-24 17:58:10 +00:00
|
|
|
|
1999-11-28 20:10:58 +00:00
|
|
|
XInternAtoms( qt_xdisplay(), names, n, FALSE, atoms_return );
|
|
|
|
for (int i = 0; i < n; i++ )
|
|
|
|
*atoms[i] = atoms_return[i];
|
1999-12-01 22:09:32 +00:00
|
|
|
|
|
|
|
|
1999-08-19 23:26:42 +00:00
|
|
|
}
|