~unity-team/unity/x-sru6

« back to all changes in this revision

Viewing changes to launcher/SwitcherController.cpp

  • Committer: Bileto Bot
  • Date: 2016-09-06 23:17:13 UTC
  • mfrom: (4112.1.19 x-sru4)
  • Revision ID: ci-train-bot@canonical.com-20160906231713-urgarg7fi572kr0s
* SwitcherView: always disable animations when in lowgfx mode (LP:
  #1602784)
* When locked discard damages from windows below lockscreen. (LP:
  #1605180)
* DecoratedWindow: display unmaximize button if the window is
  vertically or horizontally maximized (LP: #1608480)
* Make sure the switcher detail view is properly scaled. Also scale
  the xy_offset to make sure the switcher and launcher do not overlap.
  (LP: #1605256)
* Close session dialog on first ESC. (LP: #1521116)
* Filter out scrolling envents for FilterExpanderLabel. (LP: #1604632)
* Disable menu discovery animation if MenusDiscoveryDuration is 0.
  (LP: #942962)
* Redraw fake decorations on window resize. (LP: #940470)
* Use compiz::Window::serverNext instead of compiz::Window::next in
  IsWindowObscured as the latter can be outdated just after
  scale/spread terminates. (LP: #1614116)
* DecoratedWindow: avoid deferencing an invalid shadow texture ptr,
  and split functions (LP: #1608464)
* DecoratedWindow: display unmaximize button if the window is
  vertically or horizontally maximized (LP: #1608480)
* DecorationsForceQuitDialog: make CSS selectors work with gtk 3.20
* UserAuthenticatorPam: ensure pam_handle_ is null initialized and
  don't proceed if not set (LP: #1611668)
* DecorationStyle: set css name for Gtk 3.20
* OverlayRenderer: properly decorate launcher/panel when the launcher
  is at the bottom (LP: #1611694)
* OverlayRenderer: don't use rotated textures, just rotate them at
  rendering time
* SpreadWidgets: add container for spread filter and new spread
  decorations (LP: #1283314)
* WindowButton: properly partially unmaximize a window when
  middle/left clicking in the restore button (LP: #1616136)

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
const std::string DETAIL_TIMEOUT = "detail-timeout";
46
46
const std::string VIEW_CONSTRUCT_IDLE = "view-construct-idle";
47
47
const unsigned FADE_DURATION = 80;
48
 
const int XY_OFFSET = 100;
 
48
const RawPixel XY_OFFSET = 100_em;
49
49
}
50
50
 
51
51
namespace switcher
441
441
  int monitor      = uscreen->GetMonitorWithMouse();
442
442
  auto monitor_geo = uscreen->GetMonitorGeometry(monitor);
443
443
 
444
 
  monitor_geo.Expand(-XY_OFFSET, -XY_OFFSET);
 
444
  auto em = Settings::Instance().em(monitor);
 
445
  monitor_geo.Expand(-XY_OFFSET.CP(em), -XY_OFFSET.CP(em));
445
446
 
446
447
  return monitor_geo;
447
448
}