fix a segfault

This commit is contained in:
simonb 2005-05-13 11:01:01 +00:00
parent 8a249bfb1b
commit 5175ac3a40
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,8 @@
(Format: Year/Month/Day)
Changes for 0.9.13
*05/05/13:
* Fix a segfault crash, and a similar potential one (Simon)
Remember.cc Gnome.cc
*05/05/12:
* Fixed configure.in for iconv for different platforms (Mathias)
* Fixed setenv/putenv issues on platforms which dont support setenv (Mathias)

View file

@ -120,7 +120,7 @@ void Gnome::setupFrame(FluxboxWindow &win) {
(unsigned char **) &data) && data) {
unsigned int workspace_num = *data;
if (win.workspaceNumber() != workspace_num)
win.screen().reassociateWindow(&win, workspace_num, false);
win.setWorkspace(workspace_num);
XFree (data);
} else {
updateWorkspace(win);

View file

@ -828,8 +828,8 @@ void Remember::setupFrame(FluxboxWindow &win) {
BScreen &screen = winclient.screen();
if (app->workspace_remember) {
// TODO: fix placement to initialise properly
screen.reassociateWindow(&win, app->workspace, true);
// we use setWorkspace and not reassoc because we're still initialising
win.setWorkspace(app->workspace);
if (app->jumpworkspace_remember)
screen.changeWorkspaceID(app->workspace);
}