aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-19 18:36:27 (GMT)
committerfluxgen <fluxgen>2004-01-19 18:36:27 (GMT)
commit64d125c38bc45394959802160d0d3612148512e1 (patch)
tree85a673779a9c3f6121e405f2787750dccfaea077
parent1fecb21ffdbcdb3364e6ed2fc24ff17f65079e9d (diff)
downloadfluxbox-64d125c38bc45394959802160d0d3612148512e1.zip
fluxbox-64d125c38bc45394959802160d0d3612148512e1.tar.bz2
minor update
-rw-r--r--src/Gnome.cc41
1 files changed, 22 insertions, 19 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 86f7f75..c046184 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.32 2003/10/02 16:14:41 rathnor Exp $ 22// $Id: Gnome.cc,v 1.33 2004/01/19 18:36:27 fluxgen Exp $
23 23
24#include "Gnome.hh" 24#include "Gnome.hh"
25 25
@@ -54,12 +54,12 @@ void Gnome::initForScreen(BScreen &screen) {
54 screen.rootWindow().window(), 0, 0, 5, 5, 0, 0, 0); 54 screen.rootWindow().window(), 0, 0, 5, 5, 0, 0, 0);
55 // supported WM check 55 // supported WM check
56 screen.rootWindow().changeProperty(m_gnome_wm_supporting_wm_check, 56 screen.rootWindow().changeProperty(m_gnome_wm_supporting_wm_check,
57 XA_CARDINAL, 32, 57 XA_WINDOW, 32,
58 PropModeReplace, (unsigned char *) &gnome_win, 1); 58 PropModeReplace, (unsigned char *) &gnome_win, 1);
59 59
60 XChangeProperty(disp, gnome_win, 60 XChangeProperty(disp, gnome_win,
61 m_gnome_wm_supporting_wm_check, 61 m_gnome_wm_supporting_wm_check,
62 XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &gnome_win, 1); 62 XA_WINDOW, 32, PropModeReplace, (unsigned char *) &gnome_win, 1);
63 63
64 // supported gnome atoms 64 // supported gnome atoms
65 Atom gnomeatomlist[] = { 65 Atom gnomeatomlist[] = {
@@ -179,7 +179,7 @@ void Gnome::updateClientList(BScreen &screen) {
179 //number of windows to show in client list 179 //number of windows to show in client list
180 num = win; 180 num = win;
181 screen.rootWindow().changeProperty(m_gnome_wm_win_client_list, 181 screen.rootWindow().changeProperty(m_gnome_wm_win_client_list,
182 XA_CARDINAL, 32, 182 XA_WINDOW, 32,
183 PropModeReplace, (unsigned char *)wl, num); 183 PropModeReplace, (unsigned char *)wl, num);
184 184
185 delete[] wl; 185 delete[] wl;
@@ -368,21 +368,24 @@ void Gnome::setState(FluxboxWindow *win, int state) {
368 } else if (win->isShaded()) 368 } else if (win->isShaded())
369 win->shade(); 369 win->shade();
370 370
371 /* TODO 371 if (state & WIN_STATE_HIDDEN)
372 if (state & WIN_STATE_MAXIMIZED_VERT) 372 win->setHidden(! win->isHidden());
373 cerr<<"Maximize Vert"<<endl; 373
374 if (state & WIN_STATE_MAXIMIZED_HORIZ) 374
375 cerr<<"Maximize Horiz"<<endl; 375 /*
376 if (state & WIN_STATE_HIDDEN) 376 if (state & WIN_STATE_MAXIMIZED_VERT)
377 cerr<<"Hidden"<<endl; 377 cerr<<"Maximize Vert"<<endl;
378 if (state & WIN_STATE_HID_WORKSPACE) 378 if (state & WIN_STATE_MAXIMIZED_HORIZ)
379 cerr<<"HID Workspace"<<endl; 379 cerr<<"Maximize Horiz"<<endl;
380 if (state & WIN_STATE_HID_TRANSIENT) 380
381 cerr<<"HID Transient"<<endl; 381 if (state & WIN_STATE_HID_WORKSPACE)
382 if (state & WIN_STATE_FIXED_POSITION) 382 cerr<<"HID Workspace"<<endl;
383 cerr<<"Fixed Position"<<endl; 383 if (state & WIN_STATE_HID_TRANSIENT)
384 if (state & WIN_STATE_ARRANGE_IGNORE) 384 cerr<<"HID Transient"<<endl;
385 cerr<<"Arrange Ignore"<<endl; 385 if (state & WIN_STATE_FIXED_POSITION)
386 cerr<<"Fixed Position"<<endl;
387 if (state & WIN_STATE_ARRANGE_IGNORE)
388 cerr<<"Arrange Ignore"<<endl;
386 */ 389 */
387} 390}
388 391