2
* Copyright (C) 2015 Canonical, Ltd.
4
* This program is free software: you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License version 3, as published by
6
* the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
* SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
#ifndef QPAMIRSERVER_WINDOW_MANAGER_H
18
#define QPAMIRSERVER_WINDOW_MANAGER_H
20
#include <mir/shell/window_manager.h>
28
class FocusController;
32
class MirWindowManager : public QObject, public mir::shell::WindowManager
37
static std::shared_ptr<MirWindowManager> create(
38
mir::shell::FocusController* focus_controller,
39
const std::shared_ptr<mir::shell::DisplayLayout> &displayLayout);
42
// requires Qt::BlockingQueuedConnection!!
43
void sessionAboutToCreateSurface(const std::shared_ptr<mir::scene::Session> &session,
44
int type, QSize &size);
47
#endif /* QPAMIRSERVER_WINDOW_MANAGER_H */