summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-19 16:28:04 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-19 16:28:04 +0000
commitdf132e5ff3395a15c1b48461cc588e4222ae1e02 (patch)
tree93c701bf79af1c8033f105f6db40926aab1272de /src/helpers
parent0ffaa8d6673c02e9360865c8cde69a606c036af7 (diff)
update wlroots dep
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/Monitor.cpp4
-rw-r--r--src/helpers/Monitor.hpp2
-rw-r--r--src/helpers/SubsurfaceTree.cpp4
3 files changed, 6 insertions, 4 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index c7fc6750..76150f9b 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -5,8 +5,10 @@
void CMonitor::onConnect(bool noRule) {
hyprListener_monitorDestroy.removeCallback();
hyprListener_monitorFrame.removeCallback();
+ hyprListener_monitorStateRequest.removeCallback();
hyprListener_monitorFrame.initCallback(&output->events.frame, &Events::listener_monitorFrame, this);
hyprListener_monitorDestroy.initCallback(&output->events.destroy, &Events::listener_monitorDestroy, this);
+ hyprListener_monitorStateRequest.initCallback(&output->events.request_state, &Events::listener_monitorStateRequest, this);
if (m_bEnabled) {
wlr_output_enable(output, 1);
@@ -183,7 +185,7 @@ void CMonitor::onDisconnect() {
if (!BACKUPMON) {
Debug::log(WARN, "Unplugged last monitor, entering an unsafe state. Good luck my friend.");
- hyprListener_monitorMode.removeCallback();
+ hyprListener_monitorStateRequest.removeCallback();
hyprListener_monitorDestroy.removeCallback();
g_pCompositor->m_bUnsafeState = true;
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp
index 0f789781..c2cc179b 100644
--- a/src/helpers/Monitor.hpp
+++ b/src/helpers/Monitor.hpp
@@ -56,7 +56,7 @@ public:
DYNLISTENER(monitorFrame);
DYNLISTENER(monitorDestroy);
- DYNLISTENER(monitorMode);
+ DYNLISTENER(monitorStateRequest);
// hack: a group = workspaces on a monitor.
// I don't really care lol :P
diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp
index 349f5090..a41030f5 100644
--- a/src/helpers/SubsurfaceTree.cpp
+++ b/src/helpers/SubsurfaceTree.cpp
@@ -3,8 +3,8 @@
#include "../Compositor.hpp"
void addSurfaceGlobalOffset(SSurfaceTreeNode* node, int* lx, int* ly) {
- *lx += node->pSurface->sx;
- *ly += node->pSurface->sy;
+ *lx += node->pSurface->current.dx;
+ *ly += node->pSurface->current.dy;
if (node->offsetfn) {
// This is the root node