summaryrefslogtreecommitdiff
path: root/src/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-05 07:48:26 +0000
committerDana Jansens <danakj@orodu.net>2002-11-05 07:48:26 +0000
commit641bc819d1b399d2313e3328d111dd70777ecfea (patch)
tree5fb8014f9519da3e1ad451ae878fd001fe4afeb0 /src/screen.cc
parentf25252a4849ab205856629480178946b2b454aa3 (diff)
convert XAtom to OBAtom
Diffstat (limited to 'src/screen.cc')
-rw-r--r--src/screen.cc64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/screen.cc b/src/screen.cc
index 4afe22a5..24520cea 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -64,7 +64,7 @@ using std::string;
#include "bbwindow.hh"
#include "workspace.hh"
#include "util.hh"
-#include "xatom.hh"
+#include "atom.hh"
#ifndef FONT_ELEMENT_SIZE
#define FONT_ELEMENT_SIZE 50
@@ -119,11 +119,11 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(scrn) {
#endif // HAVE_GETPID
unsigned long geometry[] = { getWidth(),
getHeight()};
- xatom->setValue(getRootWindow(), XAtom::net_desktop_geometry,
- XAtom::cardinal, geometry, 2);
+ xatom->setValue(getRootWindow(), OBAtom::net_desktop_geometry,
+ OBAtom::cardinal, geometry, 2);
unsigned long viewport[] = {0,0};
- xatom->setValue(getRootWindow(), XAtom::net_desktop_viewport,
- XAtom::cardinal, viewport, 2);
+ xatom->setValue(getRootWindow(), OBAtom::net_desktop_viewport,
+ OBAtom::cardinal, viewport, 2);
XDefineCursor(otk::OBDisplay::display, getRootWindow(),
@@ -194,8 +194,8 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(scrn) {
current_workspace = workspacesList.front();
- xatom->setValue(getRootWindow(), XAtom::net_current_desktop,
- XAtom::cardinal, 0); //first workspace
+ xatom->setValue(getRootWindow(), OBAtom::net_current_desktop,
+ OBAtom::cardinal, 0); //first workspace
raiseWindows(0, 0); // this also initializes the empty stacking list
@@ -630,7 +630,7 @@ void BScreen::load_rc(void) {
resource.col_direction = TopBottom;
if (config->getValue(screenstr + "workspaceNames", s)) {
- XAtom::StringVect workspaceNames;
+ OBAtom::StringVect workspaceNames;
string::const_iterator it = s.begin(), end = s.end();
while(1) {
@@ -642,7 +642,7 @@ void BScreen::load_rc(void) {
++it;
}
- xatom->setValue(getRootWindow(), XAtom::net_desktop_names, XAtom::utf8,
+ xatom->setValue(getRootWindow(), OBAtom::net_desktop_names, OBAtom::utf8,
workspaceNames);
}
@@ -1014,8 +1014,8 @@ void BScreen::changeWorkspaceID(unsigned int id) {
current_workspace = getWorkspace(id);
- xatom->setValue(getRootWindow(), XAtom::net_current_desktop,
- XAtom::cardinal, id);
+ xatom->setValue(getRootWindow(), OBAtom::net_current_desktop,
+ OBAtom::cardinal, id);
current_workspace->showAll();
@@ -1069,11 +1069,11 @@ void BScreen::updateClientList(void) {
const BlackboxWindowList::iterator end = windowList.end();
for (; it != end; ++it, ++win_it)
*win_it = (*it)->getClientWindow();
- xatom->setValue(getRootWindow(), XAtom::net_client_list, XAtom::window,
+ xatom->setValue(getRootWindow(), OBAtom::net_client_list, OBAtom::window,
windows, windowList.size());
delete [] windows;
} else
- xatom->setValue(getRootWindow(), XAtom::net_client_list, XAtom::window,
+ xatom->setValue(getRootWindow(), OBAtom::net_client_list, OBAtom::window,
0, 0);
updateStackingList();
@@ -1106,12 +1106,12 @@ void BScreen::updateStackingList(void) {
end = stack_order.end();
for (; it != end; ++it, ++win_it)
*win_it = (*it)->getClientWindow();
- xatom->setValue(getRootWindow(), XAtom::net_client_list_stacking,
- XAtom::window, windows, stack_order.size());
+ xatom->setValue(getRootWindow(), OBAtom::net_client_list_stacking,
+ OBAtom::window, windows, stack_order.size());
delete [] windows;
} else
- xatom->setValue(getRootWindow(), XAtom::net_client_list_stacking,
- XAtom::window, 0, 0);
+ xatom->setValue(getRootWindow(), OBAtom::net_client_list_stacking,
+ OBAtom::window, 0, 0);
}
@@ -1120,8 +1120,8 @@ void BScreen::addSystrayWindow(Window window) {
XSelectInput(otk::OBDisplay::display, window, StructureNotifyMask);
systrayWindowList.push_back(window);
- xatom->setValue(getRootWindow(), XAtom::kde_net_system_tray_windows,
- XAtom::window,
+ xatom->setValue(getRootWindow(), OBAtom::kde_net_system_tray_windows,
+ OBAtom::window,
&systrayWindowList[0], systrayWindowList.size());
blackbox->saveSystrayWindowSearch(window, this);
@@ -1137,8 +1137,8 @@ void BScreen::removeSystrayWindow(Window window) {
for (; it != end; ++it)
if (*it == window) {
systrayWindowList.erase(it);
- xatom->setValue(getRootWindow(), XAtom::kde_net_system_tray_windows,
- XAtom::window,
+ xatom->setValue(getRootWindow(), OBAtom::kde_net_system_tray_windows,
+ OBAtom::window,
&systrayWindowList[0], systrayWindowList.size());
blackbox->removeSystrayWindowSearch(window);
XSelectInput(otk::OBDisplay::display, window, NoEventMask);
@@ -1154,8 +1154,8 @@ void BScreen::removeSystrayWindow(Window window) {
void BScreen::manageWindow(Window w) {
// is the window a KDE systray window?
Window systray;
- if (xatom->getValue(w, XAtom::kde_net_wm_system_tray_window_for,
- XAtom::window, systray) && systray != None) {
+ if (xatom->getValue(w, OBAtom::kde_net_wm_system_tray_window_for,
+ OBAtom::window, systray) && systray != None) {
addSystrayWindow(w);
return;
}
@@ -1198,8 +1198,8 @@ void BScreen::unmanageWindow(BlackboxWindow *w, bool remap) {
// is the window a KDE systray window?
Window systray;
if (xatom->getValue(w->getClientWindow(),
- XAtom::kde_net_wm_system_tray_window_for,
- XAtom::window, systray) && systray != None) {
+ OBAtom::kde_net_wm_system_tray_window_for,
+ OBAtom::window, systray) && systray != None) {
removeSystrayWindow(w->getClientWindow());
return;
}
@@ -1271,18 +1271,18 @@ void BScreen::updateWorkArea(void) {
dims[(i * 4) + 2] = area.width();
dims[(i * 4) + 3] = area.height();
}
- xatom->setValue(getRootWindow(), XAtom::net_workarea, XAtom::cardinal,
+ xatom->setValue(getRootWindow(), OBAtom::net_workarea, OBAtom::cardinal,
dims, 4 * workspacesList.size());
delete [] dims;
} else
- xatom->setValue(getRootWindow(), XAtom::net_workarea, XAtom::cardinal,
+ xatom->setValue(getRootWindow(), OBAtom::net_workarea, OBAtom::cardinal,
0, 0);
}
void BScreen::updateNetizenWorkspaceCount(void) {
- xatom->setValue(getRootWindow(), XAtom::net_number_of_desktops,
- XAtom::cardinal, workspacesList.size());
+ xatom->setValue(getRootWindow(), OBAtom::net_number_of_desktops,
+ OBAtom::cardinal, workspacesList.size());
updateWorkArea();
}
@@ -1292,8 +1292,8 @@ void BScreen::updateNetizenWindowFocus(void) {
Window f = ((blackbox->getFocusedWindow()) ?
blackbox->getFocusedWindow()->getClientWindow() : None);
- xatom->setValue(getRootWindow(), XAtom::net_active_window,
- XAtom::window, f);
+ xatom->setValue(getRootWindow(), OBAtom::net_active_window,
+ OBAtom::window, f);
}
@@ -1641,7 +1641,7 @@ void BScreen::buttonPressEvent(const XButtonEvent *xbutton) {
void BScreen::propertyNotifyEvent(const XPropertyEvent *pe) {
- if (pe->atom == xatom->getAtom(XAtom::net_desktop_names)) {
+ if (pe->atom == xatom->getAtom(OBAtom::net_desktop_names)) {
// _NET_WM_DESKTOP_NAMES
WorkspaceList::iterator it = workspacesList.begin();
const WorkspaceList::iterator end = workspacesList.end();