aboutsummaryrefslogtreecommitdiff
path: root/src/FbAtoms.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2002-12-01 13:42:15 (GMT)
committerrathnor <rathnor>2002-12-01 13:42:15 (GMT)
commit28b5c604490094e187494dcc566bd3d7a05a2c25 (patch)
tree8f78f5714a5cd055c10b067a2656fe7b2338e71a /src/FbAtoms.cc
parentb9134162f9633784d9097df18769a699a62650fe (diff)
downloadfluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.zip
fluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.tar.bz2
Indenting from tabs to emacs 4-space
Diffstat (limited to 'src/FbAtoms.cc')
-rw-r--r--src/FbAtoms.cc96
1 files changed, 48 insertions, 48 deletions
diff --git a/src/FbAtoms.cc b/src/FbAtoms.cc
index e3dba23..b68a8bd 100644
--- a/src/FbAtoms.cc
+++ b/src/FbAtoms.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbAtoms.cc,v 1.4 2002/09/07 20:12:47 fluxgen Exp $ 22// $Id: FbAtoms.cc,v 1.5 2002/12/01 13:41:56 rathnor Exp $
23 23
24#include "FbAtoms.hh" 24#include "FbAtoms.hh"
25 25
@@ -29,14 +29,14 @@ using namespace std;
29FbAtoms *FbAtoms::s_singleton = 0; 29FbAtoms *FbAtoms::s_singleton = 0;
30 30
31FbAtoms::FbAtoms(Display *display):m_init(false) { 31FbAtoms::FbAtoms(Display *display):m_init(false) {
32 if (s_singleton != 0) 32 if (s_singleton != 0)
33 throw string("You can only create one instance of FbAtoms"); 33 throw string("You can only create one instance of FbAtoms");
34 34
35 if (display == 0) 35 if (display == 0)
36 throw string("Must supply FbAtoms with an valid display connection"); 36 throw string("Must supply FbAtoms with an valid display connection");
37 37
38 s_singleton = this; 38 s_singleton = this;
39 initAtoms(display); 39 initAtoms(display);
40} 40}
41 41
42FbAtoms::~FbAtoms() { 42FbAtoms::~FbAtoms() {
@@ -44,50 +44,50 @@ FbAtoms::~FbAtoms() {
44} 44}
45 45
46FbAtoms *FbAtoms::instance() { 46FbAtoms *FbAtoms::instance() {
47 assert(s_singleton); 47 assert(s_singleton);
48 return s_singleton; 48 return s_singleton;
49} 49}
50 50
51void FbAtoms::initAtoms(Display *display) { 51void FbAtoms::initAtoms(Display *display) {
52 52
53 xa_wm_colormap_windows = 53 xa_wm_colormap_windows =
54 XInternAtom(display, "WM_COLORMAP_WINDOWS", False); 54 XInternAtom(display, "WM_COLORMAP_WINDOWS", False);
55 xa_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False); 55 xa_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False);
56 xa_wm_state = XInternAtom(display, "WM_STATE", False); 56 xa_wm_state = XInternAtom(display, "WM_STATE", False);
57 xa_wm_change_state = XInternAtom(display, "WM_CHANGE_STATE", False); 57 xa_wm_change_state = XInternAtom(display, "WM_CHANGE_STATE", False);
58 xa_wm_delete_window = XInternAtom(display, "WM_DELETE_WINDOW", False); 58 xa_wm_delete_window = XInternAtom(display, "WM_DELETE_WINDOW", False);
59 xa_wm_take_focus = XInternAtom(display, "WM_TAKE_FOCUS", False); 59 xa_wm_take_focus = XInternAtom(display, "WM_TAKE_FOCUS", False);
60 motif_wm_hints = XInternAtom(display, "_MOTIF_WM_HINTS", False); 60 motif_wm_hints = XInternAtom(display, "_MOTIF_WM_HINTS", False);
61 61
62 blackbox_hints = XInternAtom(display, "_BLACKBOX_HINTS", False); 62 blackbox_hints = XInternAtom(display, "_BLACKBOX_HINTS", False);
63 blackbox_attributes = XInternAtom(display, "_BLACKBOX_ATTRIBUTES", False); 63 blackbox_attributes = XInternAtom(display, "_BLACKBOX_ATTRIBUTES", False);
64 blackbox_change_attributes = 64 blackbox_change_attributes =
65 XInternAtom(display, "_BLACKBOX_CHANGE_ATTRIBUTES", False); 65 XInternAtom(display, "_BLACKBOX_CHANGE_ATTRIBUTES", False);
66 66
67 blackbox_structure_messages = 67 blackbox_structure_messages =
68 XInternAtom(display, "_BLACKBOX_STRUCTURE_MESSAGES", False); 68 XInternAtom(display, "_BLACKBOX_STRUCTURE_MESSAGES", False);
69 blackbox_notify_startup = 69 blackbox_notify_startup =
70 XInternAtom(display, "_BLACKBOX_NOTIFY_STARTUP", False); 70 XInternAtom(display, "_BLACKBOX_NOTIFY_STARTUP", False);
71 blackbox_notify_window_add = 71 blackbox_notify_window_add =
72 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_ADD", False); 72 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_ADD", False);
73 blackbox_notify_window_del = 73 blackbox_notify_window_del =
74 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_DEL", False); 74 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_DEL", False);
75 blackbox_notify_current_workspace = 75 blackbox_notify_current_workspace =
76 XInternAtom(display, "_BLACKBOX_NOTIFY_CURRENT_WORKSPACE", False); 76 XInternAtom(display, "_BLACKBOX_NOTIFY_CURRENT_WORKSPACE", False);
77 blackbox_notify_workspace_count = 77 blackbox_notify_workspace_count =
78 XInternAtom(display, "_BLACKBOX_NOTIFY_WORKSPACE_COUNT", False); 78 XInternAtom(display, "_BLACKBOX_NOTIFY_WORKSPACE_COUNT", False);
79 blackbox_notify_window_focus = 79 blackbox_notify_window_focus =
80 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_FOCUS", False); 80 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_FOCUS", False);
81 blackbox_notify_window_raise = 81 blackbox_notify_window_raise =
82 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_RAISE", False); 82 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_RAISE", False);
83 blackbox_notify_window_lower = 83 blackbox_notify_window_lower =
84 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_LOWER", False); 84 XInternAtom(display, "_BLACKBOX_NOTIFY_WINDOW_LOWER", False);
85 85
86 blackbox_change_workspace = 86 blackbox_change_workspace =
87 XInternAtom(display, "_BLACKBOX_CHANGE_WORKSPACE", False); 87 XInternAtom(display, "_BLACKBOX_CHANGE_WORKSPACE", False);
88 blackbox_change_window_focus = 88 blackbox_change_window_focus =
89 XInternAtom(display, "_BLACKBOX_CHANGE_WINDOW_FOCUS", False); 89 XInternAtom(display, "_BLACKBOX_CHANGE_WINDOW_FOCUS", False);
90 blackbox_cycle_window_focus = 90 blackbox_cycle_window_focus =
91 XInternAtom(display, "_BLACKBOX_CYCLE_WINDOW_FOCUS", False); 91 XInternAtom(display, "_BLACKBOX_CYCLE_WINDOW_FOCUS", False);
92 92
93} 93}