mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:25:58 +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 "../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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue