~unity-team/unity/get-some-debug

« back to all changes in this revision

Viewing changes to unity-shared/PluginAdapter.h

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-09-17 00:34:41 UTC
  • mfrom: (1820.4.15 super-arrows-shortcuts)
  • Revision ID: tarmac-20130917003441-wvuk91es3v20p4vd
UnityScreen: add support for Super+Arrows shortcuts to manage the focused window

Super+Arrows shortcut allows to move and maximize / restore / minimize
the focused window on the screen. Fixes: https://bugs.launchpad.net/bugs/751050, https://bugs.launchpad.net/bugs/992697.

Approved by PS Jenkins bot, Christopher Townsend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
 
131
131
  // WindowManager implementation
132
132
  bool IsWindowMaximized(Window window_id) const;
 
133
  bool IsWindowVerticallyMaximized(Window window_id) const;
 
134
  bool IsWindowHorizontallyMaximized(Window window_id) const;
133
135
  bool IsWindowDecorated(Window window_id) const;
134
136
  bool IsWindowOnCurrentDesktop(Window window_id) const;
135
137
  bool IsWindowObscured(Window window_id) const;
143
145
  bool HasWindowDecorations(Window window_id) const;
144
146
 
145
147
  void Maximize(Window window_id);
 
148
  void LeftMaximize(Window window_id);
 
149
  void RightMaximize(Window window_id);
146
150
  void Restore(Window window_id);
147
151
  void RestoreAt(Window window_id, int x, int y);
148
152
  void Minimize(Window window_id);
196
200
 
197
201
  Window GetTopWindowAbove(Window xid) const;
198
202
 
 
203
  void MoveResizeWindow(guint32 xid, nux::Geometry geometry);
 
204
 
199
205
protected:
200
206
  PluginAdapter(CompScreen* screen);
201
207
  void AddProperties(GVariantBuilder* builder);
215
221
  std::string GetUtf8Property(Window xid, Atom atom) const;
216
222
  std::vector<long> GetCardinalProperty(Window xid, Atom atom) const;
217
223
 
 
224
  void VerticallyMaximizeWindowAt(CompWindow* window, nux::Geometry const& geo);
 
225
 
218
226
  CompScreen* m_Screen;
219
227
  MultiActionList m_ExpoActionList;
220
228
  MultiActionList m_ScaleActionList;