output: fix cursors disappearing after dpms (#6659)

This commit is contained in:
outfoxxed 2024-06-25 03:55:54 -07:00 committed by GitHub
parent 4dd2b5902e
commit eef207ce0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include "../protocols/ShortcutsInhibit.hpp"
#include "../render/decorations/CHyprGroupBarDecoration.hpp"
#include "KeybindManager.hpp"
#include "PointerManager.hpp"
#include "Compositor.hpp"
#include "TokenManager.hpp"
#include "debug/Log.hpp"
@ -2280,6 +2281,8 @@ void CKeybindManager::dpms(std::string arg) {
}
g_pCompositor->m_bDPMSStateON = enable;
g_pPointerManager->recheckEnteredOutputs();
}
void CKeybindManager::swapnext(std::string arg) {

View File

@ -59,6 +59,8 @@ class CPointerManager {
Vector2D position();
Vector2D cursorSizeLogical();
void recheckEnteredOutputs();
private:
void recheckPointerPosition();
void onMonitorLayoutChange();
@ -67,7 +69,6 @@ class CPointerManager {
void onCursorMoved();
bool hasCursor();
void damageIfSoftware();
void recheckEnteredOutputs();
// closest valid point to a given one
Vector2D closestValid(const Vector2D& pos);