Bug 78799 - XFCE - presenter console on both screens ...
Summary: XFCE - presenter console on both screens ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.2.4.1 rc
Hardware: Other All
: medium major
Assignee: Not Assigned
URL:
Whiteboard: target:4.3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-16 20:36 UTC by Michael Meeks
Modified: 2014-05-16 20:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
randr output ... (1.31 KB, text/plain)
2014-05-16 20:38 UTC, Michael Meeks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meeks 2014-05-16 20:36:36 UTC
XFCE in its infinite wisdom (or lameness), seems to enjoy putting both of the screens configured in its multi-display setting on top of each other ...

That means there are apparently 2x screens - but they are on top of each other so we get a presenter console, on top of the presentation ... [ urgh ].

sal_Int32 PresenterScreen::GetPresenterScreenNumber (
    const Reference<presentation::XPresentation2>& rxPresentation) const
...
***	    nDisplayNumber is ... '2'
...
** nScreenNumber is 1
...
** nScreenCount is 2

etc.

gdb reveals:

(gdb) p gdk_display_get_default()
$5 = 139636896
(gdb) p gdk_display_get_n_screens($5)
$6 = 1
(gdb) p gdk_display_get_screen($5,0)
$7 = 139649208
(gdb) p gdk_screen_get_n_monitors($7)
$8 = 2
(gdb) p malloc(1024)
$9 = (void *) 0x8de70c8
(gdb) p gdk_screen_get_monitor_geometry($7,0,$9)
p *(GdkRectangle)$$10 = 1200
(gdb) p *(GdkRectangle *)$9
$11 = {x = 0, y = 0, width = 1600, height = 1200}
(gdb) p gdk_screen_get_monitor_geometry($7,1,$9)
$12 = 1080
(gdb) p *(GdkRectangle *)$9
$13 = {x = 0, y = 0, width = 1920, height = 1080}

	* Urgh - 2x co-incident screens ...

Which is profoundly unhelpful.
Comment 1 Michael Meeks 2014-05-16 20:38:07 UTC
Created attachment 99175 [details]
randr output ...

Prolly I'm a victim of the fglrx driver of course ... Linux / openSUSE 13.1...
Comment 2 Michael Meeks 2014-05-16 20:41:40 UTC
I guess, there are perhaps 2x simple solutions.

The first is to elide monitors on the same screen that are overlaid at the same location; as being fundamentally the same thing.

Another is to (somehow) force the presentation to be 'above' the presenter console, so that while it is there - we see the presentation, not the console [ urgh ].
Comment 3 Michael Meeks 2014-05-16 20:48:23 UTC
Similar to:

commit b1c3f00d9b0ef6c91b0209c13531bd1f9d63c1e0
Author: David Tardon <dtardon@redhat.com>
Date:   Wed Apr 25 15:08:53 2012 +0200

    rhbz#809019 count mirrored monitors as one
    
    Change-Id: I I I184541e99ab4e04b8534dd0341bc2f3630094e9c
Comment 4 Commit Notification 2014-05-16 20:52:31 UTC
Michael Meeks committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=5eeea7c91d87ee8f0b8bc8c0144c04fb84310bbf

fdo#78799 - ignore overlayed monitors with co-incident origin.



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.