bd1e4878ba
wm_change_state messages properly svn path=/trunk/kdebase/kwin/; revision=35353
56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
#include <qapplication.h>
|
|
#include "atoms.h"
|
|
|
|
Atoms::Atoms()
|
|
{
|
|
|
|
const int max = 20;
|
|
Atom* atoms[max];
|
|
char* names[max];
|
|
Atom atoms_return[max];
|
|
int n = 0;
|
|
|
|
atoms[n] = &wm_protocols;
|
|
names[n++] = "WM_PROTOCOLS";
|
|
|
|
atoms[n] = &wm_delete_window;
|
|
names[n++] = "WM_DELETE_WINDOW";
|
|
|
|
atoms[n] = &wm_take_focus;
|
|
names[n++] = "WM_TAKE_FOCUS";
|
|
|
|
atoms[n] = &wm_change_state;
|
|
names[n++] = "WM_CHANGE_STATE";
|
|
|
|
// compatibility
|
|
atoms[n] = &kwm_win_icon;
|
|
names[n++] = "KWM_WIN_ICON";
|
|
|
|
// compatibility
|
|
atoms[n] = &kwm_running;
|
|
names[n++] = "KWM_RUNNING";
|
|
|
|
atoms[n] = &net_number_of_desktops;
|
|
names[n++] = "_NET_NUMBER_OF_DESKTOPS";
|
|
|
|
atoms[n] = &net_current_desktop;
|
|
names[n++] = "_NET_CURRENT_DESKTOP";
|
|
|
|
atoms[n] = &net_active_window;
|
|
names[n++] = "_NET_ACTIVE_WINDOW";
|
|
|
|
atoms[n] = &net_client_list;
|
|
names[n++] = "_NET_CLIENT_LIST";
|
|
|
|
atoms[n] = &net_client_list_stacking;
|
|
names[n++] = "_NET_CLIENT_LIST_STACKING";
|
|
|
|
atoms[n] = &net_kde_docking_windows;
|
|
names[n++] = "_NET_KDE_DOCKING_WINDOWS";
|
|
|
|
XInternAtoms( qt_xdisplay(), names, n, FALSE, atoms_return );
|
|
for (int i = 0; i < n; i++ )
|
|
*atoms[i] = atoms_return[i];
|
|
|
|
|
|
}
|