ID:2401027
 
BYOND Version:512
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 69.0.3497.92
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:

When a user has dual monitors, a browser window does not open up centered on their screen, it opens in a position depending on which monitor dreamseeker is running on and which monitor is set to your main monitor.

If your left monitor is your main monitor...
When you have dreamseeker running on your left monitor, the window will open centered on your right monitor.
When you have dreamseeker running on your right monitor, the window will open just off screen to the right of your right monitor and you have to drag the edge to get it back on screen.

If your right monitor is your main monitor...
When dreamseeker is running on your right monitor, the window opens centered on the left monitor.
When dreamseeker is running on your left monitor, the window opens just offscreen to the left of your left monitor and you have to drag it back.

Numbered Steps to Reproduce Problem:
Have dual monitors
Open a browser window

Code Snippet (if applicable) to Reproduce Problem:
            usr << browse(HTML_VAR,"window=vars;size=600x700;border=0;can_close=1;can_resize=1;can_minimize=1;titlebar=1")


Expected Results:

Expecting the window to open centered on the screen, or at least in the same position as where the previous window closed.

Actual Results:
Window opens on the wrong monitor or off screen of the monitor as described above. If you close the window, it opens in exactly the same spot it opened the first time.

It only happens with browser windows. a skin window seems to function just fine.

Does the problem occur:
Every time? Or how often?
Every time
In other games?
Dont have access to code in other games.
In other user accounts?
Every user I've spoken with that has dual monitors has this same issue. Users with single monitors report that the window opens centered on their screen without issue.
On other computers?
Only have 1 computer to test on, but it happens on other user's computers as well.

When does the problem NOT occur?

Only doesn't occur when a user has a single monitor.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Unsure of when it started, I do remember this not being an issue before. But it wasn't something I noticed initially, then another player reported it and I began testing it some more. It was happening in 511 though and isnt something new to 512.

Workarounds:
Click and drag the edge of the window to expand it a little then drag it back onto the screen.
BYOND doesn't technically support multiple monitors at the moment. Lummox has hinted that he'd like to properly support them at some point but I believe until recently he didn't even have a way to use more than one monitor.
Well it's not about using multiple monitors. I'm not trying to run it in some kind of dual monitor mode.

This is what I mean... I'm running BYOND on my left monitor. My main monitor is set to my right monitor.

When the browser opens, this is the result. It is off screen on the far left side.
https://i.imgur.com/0mBWKwc.jpg

You have to click and drag to stretch the window so you can see it on-screen
https://i.imgur.com/EC64Igl.jpg

Then you can finally click the title bar and drag it fully into the screen
https://i.imgur.com/tKsQ5bq.jpg

If this cant be fixed, is there an option you can set with the browser windows to give them a fixed starting position?
You could set up an interface window with a browser element and use winset() to set the position.

As for the actual issue, BYOND isn't overly aware of what monitor is what and you're kind of at the whim of what Windows decides to do in those cases.

It can definitely be fixed, but Lummox hasn't really been in a position to actually reproduce the issue and test fixes. I do believe he's in that position now though, but that doesn't mean other things don't fall higher on the priority list.
This is an absolute necro but I don't want to create another report / request if one is still open, Is this at all something that can be looked into, not being able to move the client off my primary screen is a major hassle for me!
Another necro. I think it's related to this issue, so, I don't want to create dobule.

So, when you try to use height in browse() proc that is bigger than your resolution, browsed window will appear off screen partially.

Simple testcase that represents the problem:
usr << browse("test","size=300x1500;window=test")


Relative solution with "pos" parameters described here: http://www.byond.com/forum/post/2315584

Yes, this is SINGLE monitor case issue.