Prevent matlab figures from jumping from one virtual desktop to another

12 views (last 30 days)
Not sure of the right language to describe this issue...
I run matlab in Ubuntu, using fvwm, which allows me to have multiple virtual desktops running simultaneously. If I'm running matlab in Desktop A, I want to be able to switch to Desktop B and not have figures keep popping up in Desktop B, i.e., I want any figures that get generated by a program running in a given desktop to stay in the desktop where they were created and not follow me around. In short, looking for a matlab equivalent of a "sit,stay" command to a dog.
Obviously I can turn visible off, but would like my figures to be visible in the desktop where they were created.
There seem to be a couple of threads, and programs that address closely related problems
but neither of these seem to accomplish what I need, possibly because fvwm is a world of it's own.
  4 Comments
Walter Roberson
Walter Roberson on 7 Mar 2022
On MacOS, the behavior of desktops is enforced by the (built in) window manager:
  • if you switch to a desktop and open a program that you have not configured behavior for, then new windows that it opens may appear on other desktops (possibly all desktops) — "current desktop"
  • if you drag an existing running program over to a desktop, same as above — "current desktop"
  • if you right click on the dock icon and select the appropriate property area you can specify which desktop the program is to run in. In this case, new windows open by the program will appear only on that desktop
  • you can also select "no desktop" to have the program not display at all.
There are still challenges in MacOS related to multiple monitors and which of the monitors the window will display on — which is not a trivial problem because the additional monitors might get connected or disconnected (such as if you dock a laptop.)
Walter Roberson
Walter Roberson on 7 Mar 2022
have you used FvwmIdent to identify the Class for MATLAB windows and added a fvwm configuration
Style CLASS StartOnDesk NUMBER
?

Sign in to comment.

Answers (0)

Categories

Find more on Desktop in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!