https://bugs.kde.org/show_bug.cgi?id=402392

Konrad Materka <mate...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mate...@gmail.com

--- Comment #4 from Konrad Materka <mate...@gmail.com> ---
As Samer Masterson wrote, this issue is caused by late initialization of menu
in Dropbox. When user clicks on the icon, then "AboutToShow" signal is send to
Dropbox. Due to asynchronous nature of this calls, there is indeed a race
condition. KDE renders the menu with old state, at the same time Dropbox is
adding new items to the menu.

Menu is positioned using top-left corner. When new items are added, menu simply
grows t the bottom. On KDE it is a problem, because by default panel is placed
on the bottom of the screen. On Ubuntu (or any other desktop with icons on the
top) it is less of a problem, because menu has space to grow.

Everything is fine until now, this is quite common use case. There problem is
on Dropbox side, it should return true if AboutToShow event should result in
the menu being updated:

Spec:
https://github.com/gnustep/libs-dbuskit/blob/master/Bundles/DBusMenu/com.canonical.dbusmenu.xml

Dump of method call:

> method call time=1571407985.253788 sender=:1.26 -> destination=:1.137 
> serial=1047 path=/org/ayatana/NotificationItem/dropbox_client_12927/Menu; > 
> interface=com.canonical.dbusmenu; member=AboutToShow
>    int32 0
> 
> method return time=1571407985.268242 sender=:1.137 -> destination=:1.26 
> serial=20 reply_serial=1047
>   boolean false

It returns false, so KDE does not expect LayoutUpdated and does not wait for
it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to