Merge lp:~sil2100/unity/fix_sigc_disconnecting_expo into lp:unity
Status: | Rejected |
---|---|
Rejected by: | Marco Trevisan (Treviño) |
Proposed branch: | lp:~sil2100/unity/fix_sigc_disconnecting_expo |
Merge into: | lp:unity |
Diff against target: |
39 lines (+8/-1) 2 files modified
launcher/LauncherIcon.cpp (+7/-1) launcher/LauncherIcon.h (+1/-0) |
To merge this branch: | bzr merge lp:~sil2100/unity/fix_sigc_disconnecting_expo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Disapprove | ||
Review via email: mp+141108@code.launchpad.net |
Description of the change
Branch submitted for comment! This is a *workaround*! Now I noticed that it is more a bug in libsigc++!
- Problem:
Bug #1090565 - when exiting from expo using right-click on launcher icon (quicklist opening), every next expo exit (either though click on the workspaces icon or using keybindings) will result in the quicklist being opened afterwards.
The reason for this is that the on every terminate_expo signal, the quicklist-opening callback is executed, since magically it doesn't get disconnected properly after calling .disconnect() from the body of the callback (!?).
NOTE! This might be a bug in sigc! As the same code worked on precise.
- Fix:
This is a workaround. We use a bool flag to disable the callback inside its body.
- Tests:
None right now.
Unmerged revisions
- 3008. By Łukasz Zemczak
-
Add comment
- 3007. By Łukasz Zemczak
-
It seems that disconnecting a handler from a sigc signal is not possible from the handler body (?!). Not sure why. But only this way we'll be sure that the quicklist-showing will be executed only once.
Weird. Can be a lambda issue.