mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:25:59 +01:00
output: fix cursors disappearing after dpms (#6659)
This commit is contained in:
parent
4dd2b5902e
commit
eef207ce0a
2 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include "../protocols/ShortcutsInhibit.hpp"
|
#include "../protocols/ShortcutsInhibit.hpp"
|
||||||
#include "../render/decorations/CHyprGroupBarDecoration.hpp"
|
#include "../render/decorations/CHyprGroupBarDecoration.hpp"
|
||||||
#include "KeybindManager.hpp"
|
#include "KeybindManager.hpp"
|
||||||
|
#include "PointerManager.hpp"
|
||||||
#include "Compositor.hpp"
|
#include "Compositor.hpp"
|
||||||
#include "TokenManager.hpp"
|
#include "TokenManager.hpp"
|
||||||
#include "debug/Log.hpp"
|
#include "debug/Log.hpp"
|
||||||
|
@ -2280,6 +2281,8 @@ void CKeybindManager::dpms(std::string arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
g_pCompositor->m_bDPMSStateON = enable;
|
g_pCompositor->m_bDPMSStateON = enable;
|
||||||
|
|
||||||
|
g_pPointerManager->recheckEnteredOutputs();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CKeybindManager::swapnext(std::string arg) {
|
void CKeybindManager::swapnext(std::string arg) {
|
||||||
|
|
|
@ -59,6 +59,8 @@ class CPointerManager {
|
||||||
Vector2D position();
|
Vector2D position();
|
||||||
Vector2D cursorSizeLogical();
|
Vector2D cursorSizeLogical();
|
||||||
|
|
||||||
|
void recheckEnteredOutputs();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void recheckPointerPosition();
|
void recheckPointerPosition();
|
||||||
void onMonitorLayoutChange();
|
void onMonitorLayoutChange();
|
||||||
|
@ -67,7 +69,6 @@ class CPointerManager {
|
||||||
void onCursorMoved();
|
void onCursorMoved();
|
||||||
bool hasCursor();
|
bool hasCursor();
|
||||||
void damageIfSoftware();
|
void damageIfSoftware();
|
||||||
void recheckEnteredOutputs();
|
|
||||||
|
|
||||||
// closest valid point to a given one
|
// closest valid point to a given one
|
||||||
Vector2D closestValid(const Vector2D& pos);
|
Vector2D closestValid(const Vector2D& pos);
|
||||||
|
|
Loading…
Reference in a new issue