diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 15:55:47 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 15:55:47 +0100 |
| commit | 50370e4216110bed8068ce9b6c1095452cc8456f (patch) | |
| tree | b5e76f1d32756aa5327d29e213abba2bd027992a /src/layout/DwindleLayout.cpp | |
| parent | 45addfb31d02dac2ac7651410178e7a0cfde00f4 (diff) | |
added workspaces
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index b932c222..69808ae2 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -301,8 +301,10 @@ void CHyprDwindleLayout::onMouseMove(const Vector2D& mousePos) { // and check its monitor const auto PMONITOR = g_pCompositor->getMonitorFromVector(middle); - if (PMONITOR) + if (PMONITOR) { DRAGGINGWINDOW->m_iMonitorID = PMONITOR->ID; + DRAGGINGWINDOW->m_iWorkspaceID = PMONITOR->activeWorkspace; + } } void CHyprDwindleLayout::onWindowCreatedFloating(CWindow* pWindow) { |
