~woodrow-shen/unity/fix-lp-842693

« back to all changes in this revision

Viewing changes to decorations/DecorationsWindowButton.h

  • 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:
33
33
public:
34
34
  WindowButton(CompWindow*, WindowButtonType type);
35
35
 
 
36
  nux::Property<WindowButtonType> type;
 
37
 
36
38
  WidgetState GetCurrentState() const;
37
39
 
38
40
protected:
46
48
private:
47
49
  void UpdateTexture();
48
50
 
49
 
  WindowButtonType type_;
50
51
  bool pressed_;
51
52
  bool was_pressed_;
52
53
  CompWindow* win_;