After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763628 - W32: Shortcuts window is gtk3-demo misplaced on multidisplay desktop
W32: Shortcuts window is gtk3-demo misplaced on multidisplay desktop
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-03-14 16:20 UTC by LRN
Modified: 2016-03-14 16:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDK W32: Fix shown window position calculation for dialogs and splashes (1.75 KB, patch)
2016-03-14 16:20 UTC, LRN
committed Details | Review

Description LRN 2016-03-14 16:20:33 UTC
If i have multiple displays, shortcuts window appears far in the bottom-right
corner, partially offscreen.
Comment 1 LRN 2016-03-14 16:20:39 UTC
Created attachment 323894 [details] [review]
GDK W32: Fix shown window position calculation for dialogs and splashes

Two errors here:
1) A typo in splashscreen rectangle calculation - sets right twice
   instead of setting top
2) Centering for dialogs is off because it doesn't convert
   GDK virtual desktop coordinates to Windows WM virtual desktop
   coordinates by adding _gdk_offset_*
Comment 2 Ignacio Casal Quinteiro (nacho) 2016-03-14 16:21:46 UTC
Review of attachment 323894 [details] [review]:

If it works, fine for me.
Comment 3 LRN 2016-03-14 16:34:25 UTC
Attachment 323894 [details] pushed as 5ac848d - GDK W32: Fix shown window position calculation for dialogs and splashes