Skip to content

Commit

Permalink
shared mode: fix internal commands
Browse files Browse the repository at this point in the history
Since `DesktopConfiguration shared` uses internal fvwm commands, these
need updating to make use of changed syntax.
  • Loading branch information
ThomasAdam committed Mar 25, 2024
1 parent 2ae5729 commit 533d336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fvwm/move_resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,7 @@ static void _move_window(F_CMD_ARGS, Bool do_animate, int mode)
}
/* It's possible that we've received a command such as:
*
* MoveToPage HDMI2 0 1
* MoveToPage screen HDMI2 0 1
*
* In which case, move the window to the selected monitor,
* first.
Expand Down
6 changes: 3 additions & 3 deletions fvwm/virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
char *cmd; \
xasprintf(&cmd, \
"All (!Screen %s, Desk %d, CurrentPage, !CirculateHit) "\
"MoveToPage %s $[w.pagex] $[w.pagey]", \
"MoveToPage screen %s $[w.pagex] $[w.pagey]", \
(m)->si->name, (d), (m)->si->name); \
execute_function_override_window( \
NULL, NULL, cmd, NULL, 0, NULL); \
Expand Down Expand Up @@ -626,7 +626,7 @@ static void MapDesk(struct monitor *m, int desk, Bool grab)
m->virtual_scr.CurrentDesk);

xasprintf(&cmd,
"MoveToPage %s $[w.pagex] $[w.pagey]",
"MoveToPage screen %s $[w.pagex] $[w.pagey]",
m->si->name);

/* execute_function_override_window()
Expand Down Expand Up @@ -2764,7 +2764,7 @@ void CMD_MoveToDesk(F_CMD_ARGS)
RB_FOREACH(m, monitors, &monitor_q) {
if (m->virtual_scr.CurrentDesk == desk) {
xasprintf(&cmd,
"MoveToPage %s $[w.pagex] $[w.pagey]",
"MoveToPage screen %s $[w.pagex] $[w.pagey]",
m->si->name);
execute_function_override_window(
NULL, NULL, cmd, NULL, 0, fw);
Expand Down

0 comments on commit 533d336

Please sign in to comment.