mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-05-08 03:38:01 +02:00
hyprscrolling: allow column move in special workspace
This commit is contained in:
parent
fef398ed5e
commit
c8ba972200
1 changed files with 8 additions and 3 deletions
|
|
@ -1539,12 +1539,17 @@ SP<SScrollingWindowData> CScrollingLayout::dataFor(PHLWINDOW w) {
|
|||
}
|
||||
|
||||
SP<SWorkspaceData> CScrollingLayout::currentWorkspaceData() {
|
||||
if (!Desktop::focusState()->monitor() || !Desktop::focusState()->monitor()->m_activeWorkspace)
|
||||
const auto PMONITOR = Desktop::focusState()->monitor();
|
||||
|
||||
if (!PMONITOR)
|
||||
return nullptr;
|
||||
|
||||
// FIXME: special
|
||||
const auto PWORKSPACE = PMONITOR->m_activeSpecialWorkspace ? PMONITOR->m_activeSpecialWorkspace : PMONITOR->m_activeWorkspace;
|
||||
|
||||
return dataFor(Desktop::focusState()->monitor()->m_activeWorkspace);
|
||||
if (!PWORKSPACE)
|
||||
return nullptr;
|
||||
|
||||
return dataFor(PWORKSPACE);
|
||||
}
|
||||
|
||||
CBox CScrollingLayout::usableAreaFor(PHLMONITOR m) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue