diff options
author | rathnor <rathnor> | 2003-02-16 17:57:54 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-02-16 17:57:54 (GMT) |
commit | 79aec8465f8a1e618034ac08fa2d55fcca09eb5a (patch) | |
tree | 38b171d9f1e49dd04fdc30fcddf5d2caeb1d97a1 /src/Gnome.cc | |
parent | 9a82a5b1dc3cacafbdda7b54fb9ebf71ef526be3 (diff) | |
download | fluxbox_pavel-79aec8465f8a1e618034ac08fa2d55fcca09eb5a.zip fluxbox_pavel-79aec8465f8a1e618034ac08fa2d55fcca09eb5a.tar.bz2 |
Fixed gnome init problems (Simon)
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r-- | src/Gnome.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc index 40b81da..b79d535 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.9 2003/02/09 14:11:12 rathnor Exp $ | 22 | // $Id: Gnome.cc,v 1.10 2003/02/16 17:57:54 rathnor Exp $ |
23 | 23 | ||
24 | #include "Gnome.hh" | 24 | #include "Gnome.hh" |
25 | 25 | ||
@@ -107,13 +107,14 @@ void Gnome::setupWindow(FluxboxWindow &win) { | |||
107 | XFree (data); | 107 | XFree (data); |
108 | } | 108 | } |
109 | 109 | ||
110 | // load gnome layer atom | 110 | // load gnome workspace atom |
111 | if (XGetWindowProperty(disp, win.getClientWindow(), | 111 | if (XGetWindowProperty(disp, win.getClientWindow(), |
112 | m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL, | 112 | m_gnome_wm_win_workspace, 0, 1, False, XA_CARDINAL, |
113 | &ret_type, &fmt, &nitems, &bytes_after, | 113 | &ret_type, &fmt, &nitems, &bytes_after, |
114 | (unsigned char **) &data) == Success && data) { | 114 | (unsigned char **) &data) == Success && data) { |
115 | flags = *data; | 115 | unsigned int workspace_num = *data; |
116 | win.getScreen()->reassociateWindow(&win, flags ,false); | 116 | if (win.getWorkspaceNumber() != workspace_num) |
117 | win.getScreen()->reassociateWindow(&win, workspace_num, false); | ||
117 | XFree (data); | 118 | XFree (data); |
118 | } | 119 | } |
119 | 120 | ||