diff options
author | Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> | 2016-08-14 13:28:30 +0200 |
---|---|---|
committer | Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org> | 2016-09-30 09:38:56 +0000 |
commit | 9e585fc849c80b04c02c671d908fb5ade6c441b0 (patch) | |
tree | 0eeb11777d59012f8298f1a5d05e0176fda48eb6 /src/compositor/extensions/qwaylandwlshell.h | |
parent | 079b260e42cf394a8dbe823763ec455929fba091 (diff) |
Compositor: Base shell class
Standard shell class with focus policy shared by all protocol
implementations.
The automatic focus policy gives focus to windows automatically as they
are created, while the manual policy allows a compositor to decide
what to do.
Change-Id: Ica71271174b30e28217e31c53f1c8dd576752c5e
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandwlshell.h')
-rw-r--r-- | src/compositor/extensions/qwaylandwlshell.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/compositor/extensions/qwaylandwlshell.h b/src/compositor/extensions/qwaylandwlshell.h index e6cbf2268..7fe07e7a9 100644 --- a/src/compositor/extensions/qwaylandwlshell.h +++ b/src/compositor/extensions/qwaylandwlshell.h @@ -39,6 +39,7 @@ #include <QtWaylandCompositor/QWaylandCompositorExtension> #include <QtWaylandCompositor/QWaylandResource> +#include <QtWaylandCompositor/QWaylandShell> #include <QtWaylandCompositor/QWaylandShellSurface> #include <QtCore/QSize> @@ -54,7 +55,7 @@ class QWaylandOutput; class QWaylandSurfaceRole; class QWaylandWlShellSurface; -class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandWlShell : public QWaylandCompositorExtensionTemplate<QWaylandWlShell> +class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandWlShell : public QWaylandShellTemplate<QWaylandWlShell> { Q_OBJECT Q_DECLARE_PRIVATE(QWaylandWlShell) @@ -87,7 +88,6 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandWlShellSurface : public QWaylandShellS Q_PROPERTY(QWaylandWlShell *shell READ shell NOTIFY shellChanged) Q_PROPERTY(QString title READ title NOTIFY titleChanged) Q_PROPERTY(QString className READ className NOTIFY classNameChanged) - Q_PROPERTY(FocusPolicy focusPolicy READ focusPolicy NOTIFY focusPolicyChanged) public: enum FullScreenMethod { @@ -111,12 +111,6 @@ public: }; Q_ENUM(ResizeEdge); - enum FocusPolicy{ - DefaultFocus, - NoKeyboardFocus - }; - Q_ENUM(FocusPolicy) - QWaylandWlShellSurface(); QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource); virtual ~QWaylandWlShellSurface(); @@ -129,7 +123,6 @@ public: QWaylandSurface *surface() const; QWaylandWlShell *shell() const; - FocusPolicy focusPolicy() const; Qt::WindowType windowType() const override; static const struct wl_interface *interface(); @@ -154,13 +147,12 @@ Q_SIGNALS: void shellChanged(); void titleChanged(); void classNameChanged(); - void focusPolicyChanged(); void pong(); void startMove(QWaylandSeat *seat); void startResize(QWaylandSeat *seat, ResizeEdge edges); void setDefaultToplevel(); - void setTransient(QWaylandSurface *parentSurface, const QPoint &relativeToParent, FocusPolicy focusPolicy); + void setTransient(QWaylandSurface *parentSurface, const QPoint &relativeToParent, bool inactive); void setFullScreen(FullScreenMethod method, uint framerate, QWaylandOutput *output); void setPopup(QWaylandSeat *seat, QWaylandSurface *parentSurface, const QPoint &relativeToParent); void setMaximized(QWaylandOutput *output); |