Bug 45408

Summary: use new gdk_screen_get_monitor_workarea method ...
Product: LibreOffice Reporter: Michael Meeks <michael.meeks>
Component: LibreofficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEEDINFO --- QA Contact:
Severity: normal    
Priority: medium CC: libreoffice, qubit, roxana_ciobanu93
Version: Master old -3.6   
Hardware: Other   
OS: All   
Whiteboard: EasyHack DifficultyInteresting SkillCpp TopicCleanup
i915 platform: i915 features:

Description Michael Meeks 2012-01-30 08:52:23 UTC
The gtk+ guys kindly added this method. We really need it for the gtk3 port.

Checkout vcl/unx/gtk/app/gtksys.cxx (GetDisplayScreenWorkAreaPosSizePixel)

which has a dummy implementation.

This should instead dlopen ourselves, and look for the above symbol and use it if it is there. Checkout the _get_primary_monitor implementation shortly above that for a (more complicated) template to work from.

Thanks ! :-)
Comment 1 Björn Michaelsen 2013-10-04 18:46:41 UTC
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Comment 2 Robinson Tryon (qubit) 2013-10-19 00:56:53 UTC
Removing comma from whiteboard (please use a space to delimit values in this field)
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Whiteboard#Getting_Started
Comment 3 Martin Owens 2014-07-27 00:41:44 UTC
The code appears to have moved and now exists here:

vcl/unx/gtk/window/gtksalframe.cxx:2105

The code appears to take account of gtk3 and it may already be fixed. 

For gtk2 we have a dummy 1024x768 rect being returned with a warning. Is the gtk2 implementation the problem or has it been fixed?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.