Skip to content

Commit

Permalink
WIP: try fixing
Browse files Browse the repository at this point in the history
Fixes #694
  • Loading branch information
ThomasAdam committed Sep 17, 2022
1 parent 224efc9 commit 9c4eda6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions fvwm/add_window.c
Expand Up @@ -2285,11 +2285,10 @@ FvwmWindow *AddWindow(
struct monitor *tm = (fw && fw->m) ? fw->m :
monitor_get_current();

char *cmd;

xasprintf(&cmd, "GotoDesk %s 0 %d", tm->si->name, fw->Desk);
execute_function_override_window(NULL, NULL, cmd, NULL, 0, fw);
free(cmd);
//char *cmd;
//xasprintf(&cmd, "GotoDesk %s 0 %d", tm->si->name, fw->Desk);
//execute_function_override_window(NULL, NULL, cmd, NULL, 0, fw);
//free(cmd);

/* read the requested absolute geometry */
gravity_translate_to_northwest_geometry_no_bw(
Expand Down
2 changes: 1 addition & 1 deletion fvwm/fvwm3.c
Expand Up @@ -601,7 +601,7 @@ void Done(int restart, char *command)
* window position information out of sync. There may be a
* better way to do this (i.e., adjust the Restart code), but
* this works for now. */
MoveViewport(m, 0,0,False);
//MoveViewport(m, 0,0,False);
Reborder();

/* Really make sure that the connection is closed and cleared!
Expand Down
2 changes: 1 addition & 1 deletion fvwm/session.c
Expand Up @@ -1689,7 +1689,7 @@ RestartInSession (char *filename, Bool is_native, Bool _do_preserve_state)
save_state_file(filename);
set_sm_properties(ssm_conn, filename, FSmRestartImmediately);

MoveViewport(monitor_get_current(), 0, 0, False);
//MoveViewport(monitor_get_current(), 0, 0, False);
Reborder();

CloseICCCM2();
Expand Down

0 comments on commit 9c4eda6

Please sign in to comment.