Merge lp:~alan-griffiths/miral/fix-1661256 into lp:miral

Proposed by Alan Griffiths
Status: Merged
Approved by: Gerry Boland
Approved revision: 498
Merged at revision: 499
Proposed branch: lp:~alan-griffiths/miral/fix-1661256
Merge into: lp:miral
Diff against target: 20 lines (+10/-0)
1 file modified
include/miral/toolkit/window_spec.h (+10/-0)
To merge this branch: bzr merge lp:~alan-griffiths/miral/fix-1661256
Reviewer Review Type Date Requested Status
Alexandros Frantzis (community) Approve
Gerry Boland (community) Approve
Review via email: mp+316310@code.launchpad.net

Commit message

[toolkit] wrapper for mir_window_spec_set_state()

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) :
review: Approve
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'include/miral/toolkit/window_spec.h'
--- include/miral/toolkit/window_spec.h 2017-01-26 15:11:27 +0000
+++ include/miral/toolkit/window_spec.h 2017-02-03 09:33:05 +0000
@@ -236,6 +236,16 @@
236 return *this;236 return *this;
237 }237 }
238238
239 auto set_state(MirWindowState state) -> WindowSpec&
240 {
241#if MIR_CLIENT_VERSION <= MIR_VERSION_NUMBER(3, 4, 0)
242 mir_surface_spec_set_state(*this, state);
243#else
244 mir_window_spec_set_state(*this, state);
245#endif
246 return *this;
247 }
248
239 template<typename Context>249 template<typename Context>
240 void create_surface(void (*callback)(MirWindow*, Context*), Context* context) const250 void create_surface(void (*callback)(MirWindow*, Context*), Context* context) const
241 {251 {

Subscribers

People subscribed via source and target branches