Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Smokeview window on active monitor #1825

Open
rmcdermo opened this issue Mar 6, 2024 · 8 comments
Open

Start Smokeview window on active monitor #1825

rmcdermo opened this issue Mar 6, 2024 · 8 comments

Comments

@rmcdermo
Copy link
Contributor

rmcdermo commented Mar 6, 2024

Not sure if this is possible to control, but now that my "main" monitor is a laptop and usually pushed off to the side, I have to go hunt for my Smokeview window whenever I launch a case from a terminal on another monitor. Wonder if it is possible to start Smokeview on the monitor where the terminal is located? Not urgent--rainy day enhancement request.

@gforney
Copy link
Contributor

gforney commented Mar 6, 2024 via email

@gforney
Copy link
Contributor

gforney commented Mar 7, 2024

don't know how to control which monitor to display a window at startup but I can control the screen coordinates where a window is placed. on a PC with a multi-montitor setup the screen coordinates of all monitors are merged into one large virtual montitor so I can place a window anywhere within this space. more specifically

I added -x0 and -y0 command line parameters to specify the smokeview window coordinates used to place the window at startup.

  1. download and install smokeview from
    https://github.com/firemodels/test_bundles/releases/tag/SMOKEVIEW_TEST
  2. open up a case.
  3. move window to where you would like it to startup
  4. Select Show/Hide>Screen>show screen origin menu item
    smokeview will output something like the following to the screen
    screen origin: (691, 85)
  5. create a smokeview alias in your .bashrc (on a Linux or mac computer) adding something like
    -x0 691 -y0 85
    to what you had before (choosing two numbers from your output). on a PC select save screen origin from Show/Hide>screen menu item. note, for linux and mac computers if you'll need to use different alias for each monitor configuration

@rmcdermo
Copy link
Contributor Author

rmcdermo commented Mar 7, 2024

OK, I'll play with this once the test version is available. This is a step in the right direction. Thanks for the efforts. The point in the long run is to first figure out which display Smokeview is being launched from (an explorer on Windows or a terminal on linux/macOS), determine the extents of that monitor, and then set the x0 and y0 for smv startup dynamically. If I set my x0 and y0 to be my middle monitor at my desk, then it will not show up when I am just using my laptop at home, or else I'd have to have two versions (aliases) of Smokeview.

@gforney
Copy link
Contributor

gforney commented Mar 7, 2024 via email

@gforney
Copy link
Contributor

gforney commented Mar 7, 2024

when you have time, let's use the show screen option to see what smokeview thinks theupper left and lower right coordinates of all your monitors are. I might be able to do something dynamically that would work for your two use cases

@rmcdermo
Copy link
Contributor Author

This works! Thanks

@rmcdermo
Copy link
Contributor Author

Actually, just testing this some more... when you open a dialog the window shows up in the original position, not relative to the new origin. For example, right-click >> Motion/View/Render, and the dialog shows up on the original monitor.

@rmcdermo rmcdermo reopened this Mar 15, 2024
@gforney
Copy link
Contributor

gforney commented Mar 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants