Merge lp://staging/~3v1n0/unity/multi-monitor-icon-quirks into lp://staging/unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 3578
Proposed branch: lp://staging/~3v1n0/unity/multi-monitor-icon-quirks
Merge into: lp://staging/unity
Prerequisite: lp://staging/~3v1n0/unity/spread-launcher-desaturate
Diff against target: 3659 lines (+1081/-576)
50 files modified
launcher/AbstractLauncherIcon.h (+9/-9)
launcher/ApplicationLauncherIcon.cpp (+12/-10)
launcher/ApplicationLauncherIcon.h (+1/-1)
launcher/BFBLauncherIcon.cpp (+2/-4)
launcher/DesktopLauncherIcon.cpp (+0/-1)
launcher/ExpoLauncherIcon.cpp (+0/-2)
launcher/HudLauncherIcon.cpp (+5/-11)
launcher/Launcher.cpp (+152/-153)
launcher/Launcher.h (+1/-3)
launcher/LauncherController.cpp (+11/-13)
launcher/LauncherControllerPrivate.h (+1/-2)
launcher/LauncherIcon.cpp (+107/-80)
launcher/LauncherIcon.h (+28/-31)
launcher/MockLauncherIcon.h (+55/-21)
launcher/SingleMonitorLauncherIcon.cpp (+4/-6)
launcher/SingleMonitorLauncherIcon.h (+4/-5)
launcher/SoftwareCenterLauncherIcon.cpp (+5/-7)
launcher/SpacerLauncherIcon.cpp (+0/-1)
launcher/StandaloneLauncher.cpp (+6/-1)
launcher/XdndCollectionWindow.h (+1/-0)
launcher/XdndCollectionWindowImp.cpp (+8/-2)
launcher/XdndCollectionWindowImp.h (+1/-0)
launcher/XdndManager.h (+4/-2)
launcher/XdndManagerImp.cpp (+20/-12)
launcher/XdndManagerImp.h (+5/-2)
plugins/unityshell/src/unityshell.cpp (+1/-1)
plugins/unityshell/src/unityshell.h (+2/-1)
tests/mock-application.h (+4/-2)
tests/test_application_launcher_icon.cpp (+2/-10)
tests/test_bamf_application.cpp (+3/-2)
tests/test_expo_launcher_icon.cpp (+2/-11)
tests/test_launcher.cpp (+30/-40)
tests/test_launcher_controller.cpp (+125/-19)
tests/test_launcher_hover_machine.cpp (+3/-3)
tests/test_launcher_icon.cpp (+225/-12)
tests/test_layout_system.cpp (+12/-10)
tests/test_panel_menu_view.cpp (+2/-6)
tests/test_panel_view.cpp (+2/-4)
tests/test_shortcut_modeller_compiz.cpp (+3/-4)
tests/test_software_center_launcher_icon.cpp (+14/-4)
tests/test_standalone_wm.h (+60/-0)
tests/test_switcher_controller.h (+3/-2)
tests/test_switcher_controller_class.cpp (+7/-4)
tests/test_switcher_view.cpp (+2/-6)
tests/test_window_buttons.cpp (+2/-6)
tests/test_xdnd_manager_imp.cpp (+40/-29)
unity-shared/StandaloneWindowManager.cpp (+38/-15)
unity-shared/StandaloneWindowManager.h (+3/-0)
unity-shared/TimeUtil.h (+47/-4)
unity-standalone/StandaloneUnity.cpp (+7/-2)
To merge this branch: bzr merge lp://staging/~3v1n0/unity/multi-monitor-icon-quirks
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Brandon Schaefer (community) Approve
Review via email: mp+191020@code.staging.launchpad.net

Commit message

LauncherIcon: add MultiMonitor quirks support

A quirk can be now set for all monitors or for just one

Description of the change

Make the Icon Quirks to be multi-monitor aware. Each icon property can be applied to both all monitors or just a specified one. This allows to apply effects such as de-saturation and visibility to just one monitor (like on DnD or when an overlay is opened).

Also Improved XdndManager not to strictly depend on X, use XdndCollectionWindow to get the DnD data we need. This allows proper unit-testing.

This required to update some tests. Also, I've added a testwrapper::StandaloneWM wrapper that allows to cast and wrap the StaticWindowManager so that we don't have to worry about resetting its state at the end of each test (not to break the others assumptions).
Added new tests as well.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Woot Nice! LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.