kwin Library API Documentation

atoms.cpp

00001 /*****************************************************************
00002  KWin - the KDE window manager
00003  This file is part of the KDE project.
00004 
00005 Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
00006 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
00007 
00008 You can Freely distribute this program under the GNU General Public
00009 License. See the file "COPYING" for the exact licensing terms.
00010 ******************************************************************/
00011 
00012 #include <qapplication.h>
00013 #include "atoms.h"
00014 
00015 namespace KWinInternal
00016 {
00017 
00018 Atoms::Atoms()
00019     {
00020 
00021     const int max = 50;
00022     Atom* atoms[max];
00023     char* names[max];
00024     Atom atoms_return[max];
00025     int n = 0;
00026 
00027     atoms[n] = &kwin_running;
00028     names[n++] = (char *) "KWIN_RUNNING";
00029 
00030     atoms[n] = &wm_protocols;
00031     names[n++] = (char *) "WM_PROTOCOLS";
00032 
00033     atoms[n] = &wm_delete_window;
00034     names[n++] = (char *) "WM_DELETE_WINDOW";
00035 
00036     atoms[n] = &wm_take_focus;
00037     names[n++] = (char *) "WM_TAKE_FOCUS";
00038 
00039     atoms[n] = &wm_change_state;
00040     names[n++] = (char *) "WM_CHANGE_STATE";
00041 
00042     atoms[n] = &wm_client_leader;
00043     names[n++] = (char *) "WM_CLIENT_LEADER";
00044 
00045     atoms[n] = &motif_wm_hints;
00046     names[n++] = (char *) "_MOTIF_WM_HINTS";
00047 
00048     atoms[n] = &net_wm_context_help;
00049     names[n++] = (char *) "_NET_WM_CONTEXT_HELP";
00050 
00051     atoms[n] = &net_wm_ping;
00052     names[n++] = (char *) "_NET_WM_PING";
00053 
00054     atoms[n] = &kde_wm_change_state;
00055     names[n++] = (char *) "_KDE_WM_CHANGE_STATE";
00056 
00057     atoms[n] = &net_wm_user_time;
00058     names[n++] = (char *) "_NET_WM_USER_TIME";
00059     atoms[n] = &kde_net_wm_user_creation_time;
00060     names[n++] = (char *) "_KDE_NET_WM_USER_CREATION_TIME";
00061 
00062     atoms[n] = &kde_system_tray_embedding;
00063     names[n++] = (char*) "_KDE_SYSTEM_TRAY_EMBEDDING";
00064     
00065     atoms[n] = &net_wm_take_activity;
00066     names[n++] = (char*) "_NET_WM_TAKE_ACTIVITY";
00067 
00068     Atom fake;
00069     atoms[n] = &fake;
00070     names[n++] = (char *) "_DT_SM_WINDOW_INFO";
00071 
00072     XInternAtoms( qt_xdisplay(), names, n, FALSE, atoms_return );
00073     for (int i = 0; i < n; i++ )
00074         *atoms[i] = atoms_return[i];
00075     }
00076 
00077 } // namespace
KDE Logo
This file is part of the documentation for kwin Library Version 3.3.90.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Apr 5 03:59:38 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003