pointermgr: fix initial cursorwarp (#7286)
change the hook to monitorAdded instead of newMonitor so its finalized in the compositor and added to vMonitors, move the checkDefaultCursorWarp to PointerManager and check for it upon mode change. and also ensure it doesnt go out of bounds by replacing it in the middle again on resolution changes.
This commit is contained in:
parent
01ff5fdf6a
commit
511eea71c6
3 changed files with 45 additions and 39 deletions
|
|
@ -26,6 +26,7 @@ class CPointerManager {
|
|||
public:
|
||||
CPointerManager();
|
||||
|
||||
void checkDefaultCursorWarp(SP<CMonitor> monitor, std::string monitorName);
|
||||
void attachPointer(SP<IPointer> pointer);
|
||||
void attachTouch(SP<ITouch> touch);
|
||||
void attachTablet(SP<CTablet> tablet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue