Bug 103510 - UI: Slides Pane gets wrong size for its separate window on GTK3 Wayland
Summary: UI: Slides Pane gets wrong size for its separate window on GTK3 Wayland
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.2.3.1 rc
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard:
Keywords:
: 106555 (view as bug list)
Depends on:
Blocks: Wayland GTK3
  Show dependency treegraph
 
Reported: 2016-10-26 06:30 UTC by Anass Ahmed
Modified: 2017-11-07 13:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of Slides Pane window with the misplaced popover. (156.47 KB, image/png)
2016-10-26 06:30 UTC, Anass Ahmed
Details
Undocked Slides Pane in different but still small size (157.96 KB, image/png)
2016-10-26 07:00 UTC, Anass Ahmed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anass Ahmed 2016-10-26 06:30:01 UTC
Created attachment 128271 [details]
Screenshot of Slides Pane window with the misplaced popover.

I use LibreOffice 5.2 on Fedora 25 (Wayland + GTK3) and I have a problem that stayed from 5.1 on Fedora 24. I've mistakenly undocked the slides pane in Impress, but I couldn't return it back because the window got wrong size that doesn't show the contents of the window, but only the title. When I try to drag the tilebar, Impress crashes.

There's also a misplaced popover (tooltip) outside of the window pointing to a slide.

Sometimes when I hide the slides pane, and show it back (from the View menu), it gets docked back to its place in the main window, but when I close Impress and open it back, I lose it again.
Comment 1 Anass Ahmed 2016-10-26 06:52:14 UTC
I've started libreoffice from command line, and reproduced the issue (dragging the titlebar of slides pane window). I got those errors:

(soffice:31051): Gdk-WARNING **: No grabbed seat found, using the default one in order to map popup window 0x5560e7f6$
1b0. You may find oddities ahead, gdk_seat_grab() should be used to simultaneously grab input and show this popup

(soffice:31051): Gdk-WARNING **: No grabbed seat found, using the default one in order to map popup window 0x5560eb2f$
970. You may find oddities ahead, gdk_seat_grab() should be used to simultaneously grab input and show this popup

(soffice:31051): Gtk-CRITICAL **: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:31051): Gdk-WARNING **: No grabbed seat found, using the default one in order to map popup window 0x5560eb30$320. You may find oddities ahead, gdk_seat_grab() should be used to simultaneously grab input and show this popup

(soffice:31051): Gdk-WARNING **: No grabbed seat found, using the default one in order to map popup window 0x5560eb2f$c90. You may find oddities ahead, gdk_seat_grab() should be used to simultaneously grab input and show this popup

(soffice:31051): Gdk-WARNING **: No grabbed seat found, using the default one in order to map popup window 0x5560eb32$7f0. You may find oddities ahead, gdk_seat_grab() should be used to simultaneously grab input and show this popup

(soffice:31051): Gdk-WARNING **: Tried to unmap the parent of a popup

(soffice:2176): Gdk-WARNING **: No grabbed seat found, using the default one in order to map popup window 0x55bdabdf8$40. You may find oddities ahead, gdk_seat_grab() should be used to simultaneously grab input and show this popup
Comment 2 Anass Ahmed 2016-10-26 07:00:02 UTC
Created attachment 128272 [details]
Undocked Slides Pane in different but still small size

I've just known how to dock the window again (I know that I can drag the window, but this can't happen now) by pressing Ctrl+Shift+F10.

Now, I switched between docked/undocked window multiple times and closed/reopened the program too. Every time, the Slides Pane window gets different window size that can't be resized or dragged from its titlebar. All sizes are small but some of them show part of the window contents.
Comment 3 Caolán McNamara 2017-07-25 14:45:05 UTC
Yeah, this whole docking window problem can't be done directly with gtk3 under wayland so I ended up disabling the whole floating docking windows when under wayland with https://cgit.freedesktop.org/libreoffice/core/commit/?id=a6d324f30bd5cfd09d54614d8df67b7857550429 and already floating docks like this one are auto-docked on startup "fixing" the problem
Comment 4 Maxim Monastirsky 2017-11-07 13:41:40 UTC
*** Bug 106555 has been marked as a duplicate of this bug. ***