Opened 21 months ago

Closed 20 months ago

Last modified 20 months ago

#14572 closed defect (fixed)

GUI placed at weird position on startup

Reported by: roden.luo@… Owned by: pett
Priority: moderate Milestone:
Component: UI Version:
Keywords: Cc: chimera-programmers
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Hi,

(This is not a serious issue but annoying.) I'm on Win11 (observed the same on Win10 before) with two monitors. The display settings are shown below. Every time I start ChimeraX, if I move my mouse from the main display to the second display, then the ChimeraX GUI window is placed on the main display at a weird position (kind of cropped, screenshot below) that I cannot move it in any ways. If I start ChimeraX and put my mouse in the main display until the GUI is up, then everything is fine.

Attachments (3)

strange_location.png (2.8 MB ) - added by Zach Pearson 21 months ago.
windows_settings.png (255.8 KB ) - added by Zach Pearson 21 months ago.
Snipaste_2024-02-14_15-21-17.png (1.3 MB ) - added by roden.luo@… 21 months ago.
Added by email2trac

Change History (13)

by Zach Pearson, 21 months ago

Attachment: strange_location.png added

by Zach Pearson, 21 months ago

Attachment: windows_settings.png added

comment:1 by pett, 21 months ago

Cc: chimera-programmers added
Component: UnassignedUI
Owner: set to pett
Priority: blockermoderate
Status: newaccepted

comment:2 by pett, 21 months ago

Status: acceptedfeedback

Hi Roden,

We don't do anything specific to initially position the ChimeraX main window -- we let the window system / Qt windowing toolkit do that. In ChimeraX's Favorites→Settings dialog, under the "Window" tab, can you tell me what the value for "Initial overall window size" is? If you change the value and click Save and then restart ChimeraX, does it change the positioning at all?

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

comment:3 by roden.luo@…, 21 months ago

Hi Eric,

It's the first time I've opened that tab and the value for "Initial
overall window size" is "last used". All other options work perfectly.
And the window initializes at the screen in which my mouse stays at
last, according to the option I choose.

In the case of "last used", I have my last used as maximized. But if
my mouse stays in the main window, it is not actually maximized, as
shown in the screenshot, the red line is the edge of my main screen.
And if my mouse moves to the second screen, the reported problem
happens.

I think you may consider to set "proportional" as the default value.

Best,
Roden


ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu> 于2024年2月13日周二 20:36写道:
>
>
>
>
>
>

Snipaste_2024-02-14_15-21-17.png

by roden.luo@…, 21 months ago

Added by email2trac

comment:4 by pett, 20 months ago

We can reproduce this problem with any ChimeraX window that starts out large enough and you move the mouse to the second display before the window initially appears -- on Windows only. This is almost certainly a bug in the Qt windowing toolkit that ChimeraX uses, particularly since the window also winds up immovable and lacking the standard Windows window controls (maximize, close, etc.). So we are hoping it might be fixed in the Qt 6.6 release, which we hope to switch the daily build to in a couple of weeks. Nonetheless, it may be possible to work around the problem by tweaking when ChimeraX asks Qt to resize the window. I will be experimenting with that next Thursday, which is the next time I will be in the office. I don't have access to a dual-display Windows machine at home.

comment:5 by pett, 20 months ago

Status: feedbackaccepted

comment:6 by pett, 20 months ago

I have made significant progress in working around this Qt behavior, but more remains to be done. I hope to finish up on Monday when I'm next in the lab.

comment:7 by pett, 20 months ago

Made further progress, but boy Windows+Qt has some odd behaviors for positioning large windows on dual displays. Nonetheless, fairly confident I will finally have a solution when I am next in the office on Thursday.

comment:8 by pett, 20 months ago

Resolution: fixed
Status: acceptedclosed

Okay, I believe in tomorrow's daily build that the window will have a sane size and positioning. It may not show up on the second monitor if it wants to be a size that is larger than that monitor -- but it will show up with a usable size/position on some monitor.

comment:9 by roden.luo@…, 20 months ago

Wow, many thanks!!

Roden

ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu> \u4e8e2024\u5e743\u67081\u65e5\u5468\u4e94 03:11\u5199\u9053\uff1a
>
>
>
>

comment:10 by pett, 20 months ago

Only the Mac builds worked last night, so it might be another day before you can get this fix for Windows.

Note: See TracTickets for help on using tickets.