hyprbars: chase hyprland
Some checks failed
Nix / build (push) Has been cancelled

fixes #328
This commit is contained in:
Vaxry 2025-04-30 01:50:57 +01:00
parent e2fc760fdb
commit a53ebab1ca
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -105,7 +105,7 @@ void CHyprBar::onTouchDown(SCallbackInfo& info, ITouch::SDownEvent e) {
if (!inputIsValid())
return;
auto PMONITOR = g_pCompositor->getMonitorFromName(!e.device->boundOutput.empty() ? e.device->boundOutput : "");
auto PMONITOR = g_pCompositor->getMonitorFromName(!e.device->m_boundOutput.empty() ? e.device->m_boundOutput : "");
PMONITOR = PMONITOR ? PMONITOR : g_pCompositor->m_lastMonitor.lock();
g_pCompositor->warpCursorTo({PMONITOR->vecPosition.x + e.pos.x * PMONITOR->vecSize.x, PMONITOR->vecPosition.y + e.pos.y * PMONITOR->vecSize.y}, true);