aboutsummaryrefslogtreecommitdiff
path: root/src/Gnome.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r--src/Gnome.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 54e7d45..c8d4a70 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.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: Gnome.cc,v 1.11 2003/02/18 15:11:07 rathnor Exp $ 22// $Id: Gnome.cc,v 1.12 2003/03/03 21:51:01 rathnor Exp $
23 23
24#include "Gnome.hh" 24#include "Gnome.hh"
25 25
@@ -43,7 +43,7 @@ Gnome::~Gnome() {
43 } 43 }
44} 44}
45 45
46void Gnome::initForScreen(const BScreen &screen) { 46void Gnome::initForScreen(BScreen &screen) {
47 Display *disp = BaseDisplay::getXDisplay(); 47 Display *disp = BaseDisplay::getXDisplay();
48 // create the GNOME window 48 // create the GNOME window
49 Window gnome_win = XCreateSimpleWindow(disp, 49 Window gnome_win = XCreateSimpleWindow(disp,
@@ -120,7 +120,7 @@ void Gnome::setupWindow(FluxboxWindow &win) {
120 120
121} 121}
122 122
123void Gnome::updateClientList(const BScreen &screen) { 123void Gnome::updateClientList(BScreen &screen) {
124 size_t num=0; 124 size_t num=0;
125 125
126 BScreen::Workspaces::const_iterator workspace_it = screen.getWorkspacesList().begin(); 126 BScreen::Workspaces::const_iterator workspace_it = screen.getWorkspacesList().begin();
@@ -162,7 +162,7 @@ void Gnome::updateClientList(const BScreen &screen) {
162 delete wl; 162 delete wl;
163} 163}
164 164
165void Gnome::updateWorkspaceNames(const BScreen &screen) { 165void Gnome::updateWorkspaceNames(BScreen &screen) {
166 XTextProperty text; 166 XTextProperty text;
167 int number_of_desks = screen.getWorkspaceNames().size(); 167 int number_of_desks = screen.getWorkspaceNames().size();
168 168
@@ -185,7 +185,7 @@ void Gnome::updateWorkspaceNames(const BScreen &screen) {
185 delete [] names[i]; 185 delete [] names[i];
186} 186}
187 187
188void Gnome::updateCurrentWorkspace(const BScreen &screen) { 188void Gnome::updateCurrentWorkspace(BScreen &screen) {
189 int workspace = screen.getCurrentWorkspaceID(); 189 int workspace = screen.getCurrentWorkspaceID();
190 XChangeProperty(BaseDisplay::getXDisplay(), 190 XChangeProperty(BaseDisplay::getXDisplay(),
191 screen.getRootWindow(), 191 screen.getRootWindow(),
@@ -195,7 +195,7 @@ void Gnome::updateCurrentWorkspace(const BScreen &screen) {
195 updateClientList(screen); // make sure the client list is updated too 195 updateClientList(screen); // make sure the client list is updated too
196} 196}
197 197
198void Gnome::updateWorkspaceCount(const BScreen &screen) { 198void Gnome::updateWorkspaceCount(BScreen &screen) {
199 int numworkspaces = screen.getCount(); 199 int numworkspaces = screen.getCount();
200 XChangeProperty(BaseDisplay::getXDisplay(), screen.getRootWindow(), 200 XChangeProperty(BaseDisplay::getXDisplay(), screen.getRootWindow(),
201 m_gnome_wm_win_workspace_count, XA_CARDINAL, 32, PropModeReplace, 201 m_gnome_wm_win_workspace_count, XA_CARDINAL, 32, PropModeReplace,
@@ -242,7 +242,7 @@ void Gnome::updateHints(FluxboxWindow &win) {
242 242
243} 243}
244 244
245bool Gnome::checkClientMessage(const XClientMessageEvent &ce, BScreen * const screen, FluxboxWindow * const win) { 245bool Gnome::checkClientMessage(const XClientMessageEvent &ce, BScreen * screen, FluxboxWindow * const win) {
246 if (ce.message_type == m_gnome_wm_win_workspace) { 246 if (ce.message_type == m_gnome_wm_win_workspace) {
247#ifdef DEBUG 247#ifdef DEBUG
248 cerr<<__FILE__<<"("<<__LINE__<<"): Got workspace atom="<<ce.data.l[0]<<endl; 248 cerr<<__FILE__<<"("<<__LINE__<<"): Got workspace atom="<<ce.data.l[0]<<endl;