File open dialog size larger than screen resolution #73451

Closed
opened 2020-01-28 09:21:00 +01:00 by Zsolt Stefan · 9 comments

System Information
Operating system: Windows-10-10.0.17134-SP0 64 Bits
Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.83 (sub 1), branch: master, commit date: 2020-01-23 15:59, hash: 6fff73e3f0
Worked: 2.80 and before

Short description of error
The file open dialog opens with a larger size than the resolution of the monitor it is on. I am using an external monitor with a larger resolution (4K) than my laptop. Now I run Blender on the larger monitor. It then opens the file open dialog on the smaller laptop screen, but makes the window as big as though it was on the larger monitor.

This is bad, as important parts of the window are not visible, like the options on the right, the file name at the bottom, the OK and Cancel buttons. You then have to manually rescale it. Now this is even more annoying due to the fact that Blender does not remember the last size and location of the window, so every time it opens it like this.

The problem seems to be, that Blender opens the dialog on your "main" display, but calculates the size of the window based on the size of the parent Blender window.

Exact steps for others to reproduce the error

  • Use two monitors with different resolutions (eg. laptop + external 4K).
  • Set the smaller as the main display (if using the example setup, this is the default anyways).
  • Run Blender on the large monitor and go to "file open".
  • Window opens on the smaller screen, and portions of it are off-screen.
**System Information** Operating system: Windows-10-10.0.17134-SP0 64 Bits Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67 **Blender Version** Broken: version: 2.83 (sub 1), branch: master, commit date: 2020-01-23 15:59, hash: `6fff73e3f0` Worked: 2.80 and before **Short description of error** The file open dialog opens with a larger size than the resolution of the monitor it is on. I am using an external monitor with a larger resolution (4K) than my laptop. Now I run Blender on the larger monitor. It then opens the file open dialog on the smaller laptop screen, but makes the window as big as though it was on the larger monitor. This is bad, as important parts of the window are not visible, like the options on the right, the file name at the bottom, the OK and Cancel buttons. You then have to manually rescale it. Now this is even more annoying due to the fact that Blender does not remember the last size and location of the window, so every time it opens it like this. The problem seems to be, that Blender opens the dialog on your "main" display, but calculates the size of the window based on the size of the parent Blender window. **Exact steps for others to reproduce the error** - Use two monitors with different resolutions (eg. laptop + external 4K). - Set the smaller as the main display (if using the example setup, this is the default anyways). - Run Blender on the large monitor and go to "file open". - Window opens on the smaller screen, and portions of it are off-screen.
Author

Added subscriber: @ZsoltStefan

Added subscriber: @ZsoltStefan

#81314 was marked as duplicate of this issue

#81314 was marked as duplicate of this issue
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

Added subscriber: @ChristopherAnderssarian

Added subscriber: @ChristopherAnderssarian

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

This might not be a simple issue to solve (but there's also hope for a simple fix).
On one side because monitors with different DPIs are at play, which is always finicky. AFAIK we use the main monitor to clamp windows. So if your 4K monitor is the main window, that would explain this.
Another thing that might happen is that, if the window opens on a different monitor than the current Blender window, it may use the DPI hint of that window. If that is the issue, we could clamp the window size of the new window after it has been created (by sending a resize request). Then we have an updated DPI hint for this window.

The OS window-manager should generally prevent such large windows, although I'm afraid we can't rely on that.

Now this is even more annoying due to the fact that Blender does not remember the last size and location of the window, so every time it opens it like this.

Actually it should remember the size, at least it's supposed to. If it still opens at a bigger size than it was set to on last usage, that's again a hint towards DPI issues.


Will mark this as bug for now, although it's really close to being a known issue, not a bug.
I don't know when I'll find the time to investigate this properly. If somebody else has access to such a setup, you're welcome to check ;)

This might not be a simple issue to solve (but there's also hope for a simple fix). On one side because monitors with different DPIs are at play, which is always finicky. AFAIK we use the main monitor to clamp windows. So if your 4K monitor is the main window, that would explain this. Another thing that might happen is that, if the window opens on a different monitor than the current Blender window, it may use the DPI hint of that window. If that is the issue, we could clamp the window size of the new window after it has been created (by sending a resize request). Then we have an updated DPI hint for this window. The OS window-manager should generally prevent such large windows, although I'm afraid we can't rely on that. > Now this is even more annoying due to the fact that Blender does not remember the last size and location of the window, so every time it opens it like this. Actually it should remember the size, at least it's supposed to. If it still opens at a bigger size than it was set to on last usage, that's again a hint towards DPI issues. ---- Will mark this as bug for now, although it's really close to being a known issue, not a bug. I don't know when I'll find the time to investigate this properly. If somebody else has access to such a setup, you're welcome to check ;)
Author

I played around with the file open window on both monitors and at different scale factors (Is that what you mean with DPI?).

  1. Running Blender on the smaller, "main" display:
  • The file open window opens on the same display, no issues. It remembers its size.
  1. Running Blender on the 4K display:
  • The file open window opens on the other display.
  • The size of the window depends on the scale settings of the 4K display, not where it opens. So with 100% I get a small window, 125% and 150% are larger, and with 175% (which is what I use) it is already larger than the screen.
  • it does notremember its size

I then set the 4K display as "main" in Windows. Then everything worked the other way around:

  1. Running Blender on the smaller display: the file open window opens on the 4K display and doesn't remember its size. Even though I did not set any scaling factor.
  2. Running Blender on the 4K "main" diplay: the file open window opens on the 4K display and works as expected.

So it seems that it doesn't matter on which monitor you have your Blender window open, the file open window always opens on the "main" display. If this happens to be another display, than the window size gets reset. And the size it gets reset to depends on the DPI of the display of the parent Blender window, not the display it opens on.

I played around with the file open window on both monitors and at different scale factors (Is that what you mean with DPI?). 1. Running Blender on the smaller, "main" display: - The file open window opens on the same display, no issues. It remembers its size. 2. Running Blender on the 4K display: - The file open window opens on the other display. - The size of the window depends on the scale settings of the 4K display, not where it opens. So with 100% I get a small window, 125% and 150% are larger, and with 175% (which is what I use) it is already larger than the screen. - it does **not**remember its size I then set the 4K display as "main" in Windows. Then everything worked the other way around: 1. Running Blender on the smaller display: the file open window opens on the 4K display and doesn't remember its size. Even though I did not set any scaling factor. 2. Running Blender on the 4K "main" diplay: the file open window opens on the 4K display and works as expected. So it seems that it doesn't matter on which monitor you have your Blender window open, the file open window always opens on the "main" display. If this happens to be another display, than the window size gets reset. And the size it gets reset to depends on the DPI of the display of the parent Blender window, not the display it opens on.

Added subscribers: @kittrick, @iss

Added subscribers: @kittrick, @iss
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:24:50 +01:00
Harley Acheson added
Status
Resolved
and removed
Status
Confirmed
labels 2023-10-16 23:36:25 +02:00
Member

This has been fixed for quite a while now. The File Browser will open on the same monitor as the main window, not just on the main monitor as before.

This has been fixed for quite a while now. The File Browser will open on the same monitor as the main window, not just on the main monitor as before.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73451
No description provided.