aboutsummaryrefslogtreecommitdiff
path: root/src/FbAtoms.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-03-18 15:23:08 (GMT)
committerfluxgen <fluxgen>2002-03-18 15:23:08 (GMT)
commit1e761e6b71e5ebb530633fce2a4cb0293e453fce (patch)
tree0f0cdc2ce122c90acbd84c1e45fa5132366e43a5 /src/FbAtoms.cc
parent87f58f891c02cc1f692248f96c27b518691d5011 (diff)
downloadfluxbox-1e761e6b71e5ebb530633fce2a4cb0293e453fce.zip
fluxbox-1e761e6b71e5ebb530633fce2a4cb0293e453fce.tar.bz2
first
Diffstat (limited to 'src/FbAtoms.cc')
-rw-r--r--src/FbAtoms.cc132
1 files changed, 132 insertions, 0 deletions
diff --git a/src/FbAtoms.cc b/src/FbAtoms.cc
new file mode 100644
index 0000000..b8e1718
--- /dev/null
+++ b/src/FbAtoms.cc
@@ -0,0 +1,132 @@
1// BaseDisplay.hh for Fluxbox Window Manager
2// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
3// FbAtom.cc
4// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
5//
6// Permission is hereby granted, free of charge, to any person obtaining a
7// copy of this software and associated documentation files (the "Software"),
8// to deal in the Software without restriction, including without limitation
9// the rights to use, copy, modify, merge, publish, distribute, sublicense,
10// and/or sell copies of the Software, and to permit persons to whom the
11// Software is furnished to do so, subject to the following conditions:
12//
13// The above copyright notice and this permission notice shall be included in
14// all copies or substantial portions of the Software.
15//
16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22// DEALINGS IN THE SOFTWARE.
23
24// $Id: FbAtoms.cc,v 1.1 2002/03/18 15:23:08 fluxgen Exp $
25
26#include "FbAtoms.hh"
27
28FbAtoms::FbAtoms(Display *display):m_init(false) {
29 if (display)
30 initAtoms(display);
31}
32
33FbAtoms::~FbAtoms() {
34
35}
36
37void FbAtoms::initAtoms(Display *display) {
38 if (m_init) //already done init?
39 return;
40 else
41 m_init = true;
42
43 xa_wm_colormap_windows =
44 XInternAtom(display, "WM_COLORMAP_WINDOWS", False);
45 xa_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False);
46 xa_wm_state = XInternAtom(display, "WM_STATE", False);
47 xa_wm_change_state = XInternAtom(display, "WM_CHANGE_STATE", False);
48 xa_wm_delete_window = XInternAtom(display, "WM_DELETE_WINDOW", False);
49 xa_wm_take_focus = XInternAtom(display, "WM_TAKE_FOCUS", False);
50 motif_wm_hints = XInternAtom(display, "_MOTIF_WM_HINTS", False);
51
52 blackbox_hints = XInternAtom(display, "_BLACKBOX_HINTS", False);
53 blackbox_attributes = XInternAtom(display, "_BLACKBOX_ATTRIBUTES", False);
54 blackbox_change_attributes =
55 XInternAtom(display, "_BLACKBOX_CHANGE_ATTRIBUTES", False);
56
57 blackbox_structure_messages =
58 XInternAtom(display, "_BLACKBOX_STRUCTURE_MESSAGES", False);
59 blackbox_notify_startup =
60 XInternAtom(display, "_BLACKBOX_NOTIFY_STARTUP", False);
61 blackbox_notify_window_add =
62 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_ADD", False);
63 blackbox_notify_window_del =
64 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_DEL", False);
65 blackbox_notify_current_workspace =
66 XInternAtom(display, "_BLACKBOX_NOTIFY_CURRENT_WORKSPACE", False);
67 blackbox_notify_workspace_count =
68 XInternAtom(display, "_BLACKBOX_NOTIFY_WORKSPACE_COUNT", False);
69 blackbox_notify_window_focus =
70 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_FOCUS", False);
71 blackbox_notify_window_raise =
72 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_RAISE", False);
73 blackbox_notify_window_lower =
74 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_LOWER", False);
75
76 blackbox_change_workspace =
77 XInternAtom(display, "_BLACKBOX_CHANGE_WORKSPACE", False);
78 blackbox_change_window_focus =
79 XInternAtom(display, "_BLACKBOX_CHANGE_WINDOW_FOCUS", False);
80 blackbox_cycle_window_focus =
81 XInternAtom(display, "_BLACKBOX_CYCLE_WINDOW_FOCUS", False);
82
83#ifdef NEWWMSPEC
84
85 net_supported = XInternAtom(display, "_NET_SUPPORTED", False);
86 net_client_list = XInternAtom(display, "_NET_CLIENT_LIST", False);
87 net_client_list_stacking = XInternAtom(display, "_NET_CLIENT_LIST_STACKING", False);
88 net_number_of_desktops = XInternAtom(display, "_NET_NUMBER_OF_DESKTOPS", False);
89 net_desktop_geometry = XInternAtom(display, "_NET_DESKTOP_GEOMETRY", False);
90 net_desktop_viewport = XInternAtom(display, "_NET_DESKTOP_VIEWPORT", False);
91 net_current_desktop = XInternAtom(display, "_NET_CURRENT_DESKTOP", False);
92 net_desktop_names = XInternAtom(display, "_NET_DESKTOP_NAMES", False);
93 net_active_window = XInternAtom(display, "_NET_ACTIVE_WINDOW", False);
94 net_workarea = XInternAtom(display, "_NET_WORKAREA", False);
95 net_supporting_wm_check = XInternAtom(display, "_NET_SUPPORTING_WM_CHECK", False);
96 net_virtual_roots = XInternAtom(display, "_NET_VIRTUAL_ROOTS", False);
97
98 net_close_window = XInternAtom(display, "_NET_CLOSE_WINDOW", False);
99 net_wm_moveresize = XInternAtom(display, "_NET_WM_MOVERESIZE", False);
100
101 net_properties = XInternAtom(display, "_NET_PROPERTIES", False);
102 net_wm_name = XInternAtom(display, "_NET_WM_NAME", False);
103 net_wm_desktop = XInternAtom(display, "_NET_WM_DESKTOP", False);
104 net_wm_window_type = XInternAtom(display, "_NET_WM_WINDOW_TYPE", False);
105 net_wm_state = XInternAtom(display, "_NET_WM_STATE", False);
106 net_wm_strut = XInternAtom(display, "_NET_WM_STRUT", False);
107 net_wm_icon_geometry = XInternAtom(display, "_NET_WM_ICON_GEOMETRY", False);
108 net_wm_icon = XInternAtom(display, "_NET_WM_ICON", False);
109 net_wm_pid = XInternAtom(display, "_NET_WM_PID", False);
110 net_wm_handled_icons = XInternAtom(display, "_NET_WM_HANDLED_ICONS", False);
111
112 net_wm_ping = XInternAtom(display, "_NET_WM_PING", False);
113
114#endif // NEWWMSPEC
115
116#ifdef GNOME
117
118 gnome_wm_win_layer = XInternAtom(display, "_WIN_LAYER", False);
119 gnome_wm_win_state = XInternAtom(display, "_WIN_STATE", False);
120 gnome_wm_win_hints = XInternAtom(display, "_WIN_HINTS", False);
121 gnome_wm_win_app_state = XInternAtom(display, "_WIN_APP_STATE", False);
122 gnome_wm_win_expanded_size = XInternAtom(display, "_WIN_EXPANDED_SIZE", False);
123 gnome_wm_win_icons = XInternAtom(display, "_WIN_ICONS", False);
124 gnome_wm_win_workspace = XInternAtom(display, "_WIN_WORKSPACE", False);
125 gnome_wm_win_workspace_count = XInternAtom(display, "_WIN_WORKSPACE_COUNT", False);
126 gnome_wm_win_workspace_names = XInternAtom(display, "_WIN_WORKSPACE_NAMES", False);
127 gnome_wm_win_client_list = XInternAtom(display, "_WIN_CLIENT_LIST", False);
128 gnome_wm_prot = XInternAtom(display, "_WIN_PROTOCOLS", False);
129 gnome_wm_supporting_wm_check = XInternAtom(display, "_WIN_SUPPORTING_WM_CHECK", False);
130
131#endif // GNOME
132}