summaryrefslogtreecommitdiff
path: root/src/Compositor.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-20 14:36:55 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-20 14:36:55 +0100
commitf8a731b10b653a6450fe7c8beea48db9373b32f8 (patch)
tree2f527139b63ea95298ac5611df46aff8d265359d /src/Compositor.hpp
parentdecb2f638d875900c859d968726d5941058095e8 (diff)
focus to layers
Diffstat (limited to 'src/Compositor.hpp')
-rw-r--r--src/Compositor.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Compositor.hpp b/src/Compositor.hpp
index c9d1c528..b1cb1370 100644
--- a/src/Compositor.hpp
+++ b/src/Compositor.hpp
@@ -53,7 +53,7 @@ public:
void startCompositor();
- CWindow* m_pLastFocus = nullptr;
+ wlr_surface* m_pLastFocus = nullptr;
SMonitor* m_pLastMonitor = nullptr;
// ------------------------------------------------- //
@@ -63,15 +63,18 @@ public:
SMonitor* getMonitorFromVector(const Vector2D&);
void removeWindowFromVectorSafe(CWindow*);
void focusWindow(CWindow*);
+ void focusSurface(wlr_surface*);
bool windowExists(CWindow*);
bool windowValidMapped(CWindow*);
CWindow* vectorToWindow(const Vector2D&);
CWindow* vectorToWindowIdeal(const Vector2D&);
+ wlr_surface* vectorToLayerSurface(const Vector2D&, std::list<SLayerSurface*>*, Vector2D*);
CWindow* windowFromCursor();
CWindow* windowFloatingFromCursor();
SMonitor* getMonitorFromOutput(wlr_output*);
SLayerSurface* getLayerForPopup(SLayerPopup*);
CWindow* getWindowForPopup(wlr_xdg_popup*);
+ CWindow* getWindowFromSurface(wlr_surface*);
private:
void initAllSignals();