aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/desktop/LayerSurface.hpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-10-27 18:23:01 +0000
committerVaxry <[email protected]>2024-10-27 18:23:01 +0000
commit24d218964bb099b8aa7c4b913a63389d0b3be203 (patch)
treefccb9c0e2371fe3851ace3fd6b15a5b9deda84d2 /src/desktop/LayerSurface.hpp
parentf9b52203f58bcb716144d89ee9f85fe12ebfe94d (diff)
downloadHyprland-move-to-monitor-p.tar.gz
Hyprland-move-to-monitor-p.zip
move to monitor pointersmove-to-monitor-p
Diffstat (limited to 'src/desktop/LayerSurface.hpp')
-rw-r--r--src/desktop/LayerSurface.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/desktop/LayerSurface.hpp b/src/desktop/LayerSurface.hpp
index e0f17039..6aa8eb81 100644
--- a/src/desktop/LayerSurface.hpp
+++ b/src/desktop/LayerSurface.hpp
@@ -42,7 +42,7 @@ class CLayerSurface {
bool mapped = false;
uint32_t layer = 0;
- MONITORID monitorID = -1;
+ PHLMONITORREF monitor;
bool fadingOut = false;
bool readyToDelete = false;
@@ -70,6 +70,7 @@ class CLayerSurface {
void onMap();
void onUnmap();
void onCommit();
+ MONITORID monitorID();
private:
struct {
@@ -83,6 +84,6 @@ class CLayerSurface {
// For the list lookup
bool operator==(const CLayerSurface& rhs) const {
- return layerSurface == rhs.layerSurface && monitorID == rhs.monitorID;
+ return layerSurface == rhs.layerSurface && monitor == rhs.monitor;
}
};