Bug 399347

Summary: KoPopup Button sometimes pops popup widget up on the wrong monitor
Product: [Applications] krita Reporter: David REVOY <info>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: emmetoneill.pdx, gremriel, halla, tysontanx
Priority: NOR Keywords: multiscreen
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: [^ Photo of the bug ]
Screenshot monitor setup
Second screenshot

Description David REVOY 2018-10-03 17:32:44 UTC
Created attachment 115391 [details]
[^ Photo of the bug ]

Hi,

In a multi monitor environment, when clicking on the little arrow next to the Mirror buttons in the top-toolbar, the option panel appears on the wrong monitor (photo in attachement).

This is a bug found by Gremriel on IRC using multi-monitor setup on Windows 10 with a GTX1070ti. I was able to reproduce it on git~master with Kubuntu 18.04.1 and Nvidia proprietary driver.
Comment 1 Gremriel 2018-10-04 11:36:09 UTC
This happens also with the options of the Brush preset Selector in the toolbar.
Comment 2 Halla Rempt 2018-10-09 09:32:05 UTC
I wonder how the monitors are configured: with my current multimonitor setup I cannot reproduce this. The weird thing is, we actually have code to ensure the popup widget is inside the screen of the popup button, so maybe it's Qt's desktop calcualtion that's off.
Comment 3 Gremriel 2018-10-09 10:38:16 UTC
Created attachment 115503 [details]
Screenshot monitor setup

Here's a screenshot of my monitor setup.
Comment 4 Gremriel 2018-10-09 10:39:02 UTC
Created attachment 115504 [details]
Second screenshot
Comment 5 Halla Rempt 2018-10-09 12:43:13 UTC
*** Bug 399164 has been marked as a duplicate of this bug. ***
Comment 6 David REVOY 2018-10-10 05:17:20 UTC
The setup I have to reproduce this bug is:
+-------------------+
|         |         |
|  1080p  |  1080p  |
|  lcd    |  lcd    |
+-------------------+
|         |
|  1080p  |
|  cintiq |
+---------+

I couldn't reproduce the bug with a dual-screen setup like:
+-------------------+
| (clone) |         |
|  1080p  |  1080p  |
|lcd+cntiq|  lcd    |
+-------------------+

Watching the screenshot of @Gremriel sent; it feels the bug appears with multi-monitor not really filling a rectangular area. With an unused part. For mine:
+-----------------------+
|    3840x2160 area     |
| +-------------------+ |
| |         |         | |
| |  1080p  |  1080p  | |
| |  lcd    |  lcd    | |
| +-------------------+ |
| |         |xxxxxxxxxx |
| |  1080p  |xxxnonxxxx |
| |  cintiq |xxxusedxxx |
| +---------+xxxxxxxxxx |
|                       |
+-----------------------+

In the bug triage livestreaming, you mention it might be a Qt support of multi-screen issue. Yes, probably. 
(PS:I hope my little ascii art will be well displayed.)
Comment 7 Gremriel 2018-10-10 07:39:00 UTC
If I move the Cintiq to the right of the main monitor, the options popup stays on the Cintiq.
Comment 8 Dmitry Kazakov 2024-08-22 16:39:17 UTC
Remove triaged keyword from CONFIRMED bugs