~mir-team/qtmir/trunk

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/mirwindowmanager.h

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada
  • Date: 2016-02-12 00:06:46 UTC
  • mfrom: (381.4.16 initialSurfaceGeom)
  • Revision ID: ci-train-bot@canonical.com-20160212000646-kcsjdiesdyazpp53
Let shell decide the initial surface size Fixes: #1532974
Approved by: Nick Dedekind

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <mir/shell/window_manager.h>
21
21
 
22
22
#include <QObject>
 
23
#include <QSize>
23
24
 
24
25
namespace mir {
25
26
    namespace shell {
33
34
    Q_OBJECT
34
35
 
35
36
public:
36
 
 
37
 
    static std::unique_ptr<MirWindowManager> create(
 
37
    static std::shared_ptr<MirWindowManager> create(
38
38
        mir::shell::FocusController* focus_controller,
39
39
        const std::shared_ptr<mir::shell::DisplayLayout> &displayLayout);
 
40
 
 
41
Q_SIGNALS:
 
42
    // requires Qt::BlockingQueuedConnection!!
 
43
    void sessionAboutToCreateSurface(const std::shared_ptr<mir::scene::Session> &session,
 
44
                                     int type, QSize &size);
40
45
};
41
46
 
42
47
#endif /* QPAMIRSERVER_WINDOW_MANAGER_H */