summaryrefslogtreecommitdiff
path: root/src/workspace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/workspace.cc')
-rw-r--r--src/workspace.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/workspace.cc b/src/workspace.cc
index ab209b0e..ec220a6a 100644
--- a/src/workspace.cc
+++ b/src/workspace.cc
@@ -31,7 +31,7 @@ using std::string;
#include "util.hh"
#include "bbwindow.hh"
#include "workspace.hh"
-#include "xatom.hh"
+#include "atom.hh"
namespace ob {
@@ -424,12 +424,12 @@ void Workspace::setCurrent(void) {
void Workspace::readName(void) {
- XAtom::StringVect namesList;
+ OBAtom::StringVect namesList;
unsigned long numnames = id + 1;
// attempt to get from the _NET_WM_DESKTOP_NAMES property
- if (xatom->getValue(screen->getRootWindow(), XAtom::net_desktop_names,
- XAtom::utf8, numnames, namesList) &&
+ if (xatom->getValue(screen->getRootWindow(), OBAtom::net_desktop_names,
+ OBAtom::utf8, numnames, namesList) &&
namesList.size() > id) {
name = namesList[id];
@@ -451,17 +451,17 @@ void Workspace::readName(void) {
void Workspace::setName(const string& new_name) {
// set the _NET_WM_DESKTOP_NAMES property with the new name
- XAtom::StringVect namesList;
+ OBAtom::StringVect namesList;
unsigned long numnames = (unsigned) -1;
- if (xatom->getValue(screen->getRootWindow(), XAtom::net_desktop_names,
- XAtom::utf8, numnames, namesList) &&
+ if (xatom->getValue(screen->getRootWindow(), OBAtom::net_desktop_names,
+ OBAtom::utf8, numnames, namesList) &&
namesList.size() > id)
namesList[id] = new_name;
else
namesList.push_back(new_name);
- xatom->setValue(screen->getRootWindow(), XAtom::net_desktop_names,
- XAtom::utf8, namesList);
+ xatom->setValue(screen->getRootWindow(), OBAtom::net_desktop_names,
+ OBAtom::utf8, namesList);
}