Skip to content

Tray: Workaround collection - #5179

Merged
ckamm merged 4 commits into
owncloud:masterfrom
ckamm:trayagain
Sep 23, 2016
Merged

ckamm merged 4 commits into
owncloud:masterfrom
ckamm:trayagain

Conversation

@ckamm

@ckamm ckamm commented Sep 13, 2016

Copy link
Copy Markdown
Contributor
  • QDBus workaround for Qt 5.5.0 only, there were reports of the tray
    working fine with 5.5.1. [Xubuntu 16.04.1] [2.3] Systray icon disappear briefly when a file or icon changes state, tray menu opens and dissapears instantly #5164
  • OWNCLOUD_FORCE_QDBUS_TRAY_WORKAROUND to force the workaround on an off
  • OWNCLOUD_TRAY_UPDATE_WHILE_VISIBLE to enable or disable updating of
    the menu while it's visible
  • Track the visibility of the tray menu with aboutToShow/aboutToHide
    only on OSX - the aboutToHide signal doesn't trigger reliably on linux
  • Refactor such that setupContextMenu is different from updateContextMenu
  • Don't use on-demand updating of the tray menu when the qdbus workaround
    is active, instead to occasional (30s) updates of the tray menu.

@ckamm ckamm added this to the 2.3.0 milestone Sep 13, 2016
@mention-bot

Copy link
Copy Markdown

@ckamm, thanks for your PR! By analyzing the annotation information on this pull request, we identified @guruz, @dragotin and @ogoffart to be potential reviewers

Comment thread src/gui/owncloudgui.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_contextMenuVisibleOsx

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested patch on OS X, compiles and works fine.

Comment thread src/gui/owncloudgui.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technicly, one can compile an app against 5.5.1 and run it against 5.5.0. so i guess this should be < 5.6

@ckamm

ckamm commented Sep 14, 2016

Copy link
Copy Markdown
Contributor Author

@guruz @ogoffart Addressed your comments.

@guruz

guruz commented Sep 15, 2016

Copy link
Copy Markdown
Contributor

I can confirm it still seems to work on OS X.

@guruz

guruz commented Sep 15, 2016

Copy link
Copy Markdown
Contributor

👍 let's merge it after @ogoffart agrees too.
Did someone test on Windows?

@ogoffart

Copy link
Copy Markdown
Contributor

Tested on linux with the xembed protocol. Works but changing the menu while it is visible causes flickering of the menu. I don't know if it is such a good idea.

@ckamm

ckamm commented Sep 22, 2016 •

Copy link
Copy Markdown
Contributor Author

@ogoffart So you're saying we should disable update-while-visible altogether? It'd be easy to test, just set OWNCLOUD_TRAY_UPDATE_WHILE_VISIBLE=0. We used to always update-while-visible, but if it leads to issues in several places disabling it would be fine with me, it's not a critical feature.

* QDBus workaround for Qt 5.5.0 only, there were reports of the tray
  working fine with 5.5.1. owncloud#5164
* OWNCLOUD_FORCE_QDBUS_TRAY_WORKAROUND to force the workaround on an off
* OWNCLOUD_TRAY_UPDATE_WHILE_VISIBLE to enable or disable updating of
  the menu while it's visible
* Track the visibility of the tray menu with aboutToShow/aboutToHide
  only on OSX - the aboutToHide signal doesn't trigger reliably on linux
* Refactor such that setupContextMenu is different from updateContextMenu
* Don't use on-demand updating of the tray menu when the qdbus workaround
  is active, instead to occasional (30s) updates of the tray menu.
@ckamm
ckamm merged commit 98efb07 into owncloud:master Sep 23, 2016
@ckamm
ckamm deleted the trayagain branch September 23, 2016 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants