Windows: allow windows to span multiple monitors #104438

Merged
Harley Acheson merged 1 commits from Harley/blender:SpanMonitorsWin32 into main 2023-02-16 00:41:36 +01:00
Member

On the Windows platform allow Blender windows to be created that are
spread over multiple adjacent monitors.


On Windows we are quite feature-complete and stable for the creation and placement of multiple (non-temp) Blender windows. We correctly do so across multiple monitors no matter their arrangement, resolution, and scale.

However, there is another way that Blender could use multiple monitors - suggested by a core dev - which is to size a window so that it comprises multiple monitors. There are some advantages to this way of working because the one window remains constantly active and in focus. It also allows a single region (like a node editor) to be as large as possible.

But this way of working is not currently possible. That is because during window creation we constrain them to fit within the confines of the nearest single monitor. This has mostly been done for simplicity and safety. We don't want to restore a saved window to a position where it cannot be seen or used.

This patch addresses that. It allows windows to span multiple monitors, and does so safely by constraining the four corners of the window to be within the working area of any active monitor. This means it allows the creation of single windows as shown below in blue (left two), but does not allow the one in orange (right):

image.png

Note this has been previously (before gitea) reviewed and approved by Brecht.

On the Windows platform allow Blender windows to be created that are spread over multiple adjacent monitors. --- On Windows we are quite feature-complete and stable for the creation and placement of multiple (non-temp) Blender windows. We correctly do so across multiple monitors no matter their arrangement, resolution, and scale. However, there is another way that Blender could use multiple monitors - suggested by a core dev - which is to size a window so that it comprises multiple monitors. There are some advantages to this way of working because the one window remains constantly active and in focus. It also allows a single region (like a node editor) to be as large as possible. But this way of working is not currently possible. That is because during window creation we constrain them to fit within the confines of the nearest single monitor. This has mostly been done for simplicity and safety. We don't want to restore a saved window to a position where it cannot be seen or used. This patch addresses that. It allows windows to span multiple monitors, and does so safely by constraining the four corners of the window to be within the working area of any active monitor. This means it allows the creation of single windows as shown below in blue (left two), but does not allow the one in orange (right): ![image.png](/attachments/b2a9dfca-d54c-467a-ab95-717df3b25051) Note this has been previously (before gitea) reviewed and approved by Brecht.
Ray molenkamp was assigned by Harley Acheson 2023-02-07 21:52:42 +01:00
Harley Acheson changed title from WIP: Win32 Allow Windows to Span Multiple Monitors to Win32: Allow Windows to Span Multiple Monitors 2023-02-07 21:59:12 +01:00
Brecht Van Lommel changed title from Win32: Allow Windows to Span Multiple Monitors to Windows: Allow Windows to Span Multiple Monitors 2023-02-09 12:43:57 +01:00
Brecht Van Lommel changed title from Windows: Allow Windows to Span Multiple Monitors to Windows: allow windows to span multiple monitors 2023-02-09 12:44:22 +01:00
Brecht Van Lommel approved these changes 2023-02-09 12:44:29 +01:00
Ray molenkamp was unassigned by Brecht Van Lommel 2023-02-09 13:55:01 +01:00
Brecht Van Lommel requested review from Ray molenkamp 2023-02-09 13:55:08 +01:00
Member

@blender-bot build windows-amd64

@blender-bot build windows-amd64
Ray molenkamp approved these changes 2023-02-09 18:29:02 +01:00
Ray molenkamp left a comment
Member

@brecht already reviewed it, the bot ruled out any min/max shenanigan's, lgtm

@brecht already reviewed it, the bot ruled out any min/max shenanigan's, lgtm
Brecht Van Lommel added this to the User Interface project 2023-02-13 09:22:30 +01:00
Harley Acheson force-pushed SpanMonitorsWin32 from f14e16f88f to 1676ca737e 2023-02-16 00:08:45 +01:00 Compare
Author
Member

@blender-bot build windows-amd64

@blender-bot build windows-amd64
Harley Acheson merged commit 10c0c2a156 into main 2023-02-16 00:41:36 +01:00
Harley Acheson deleted branch SpanMonitorsWin32 2023-02-16 00:41:37 +01:00
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
3 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#104438
No description provided.