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
|
|
|
|
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
|
|
|
|
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
|
|
|
}
|