Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chase ff9e059 #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/scroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ void ScrollerLayout::resizeActiveWindow(const Vector2D &delta,
if (s == nullptr) {
// Window is not tiled
*PWINDOW->m_vRealSize = Vector2D(std::max((PWINDOW->m_vRealSize->goal() + delta).x, 20.0), std::max((PWINDOW->m_vRealSize->goal() + delta).y, 20.0));
PWINDOW->sendWindowSize(PWINDOW->m_vRealSize->goal());
PWINDOW->updateWindowDecos();
return;
}
Expand Down Expand Up @@ -538,7 +537,6 @@ void ScrollerLayout::fullscreenRequestForWindow(PHLWINDOW window,

window->unsetWindowData(PRIORITY_LAYOUT);
window->updateWindowData();
window->sendWindowSize(window->m_vRealSize->goal());
}
} else {
// apply new pos and size being monitors' box
Expand All @@ -551,7 +549,6 @@ void ScrollerLayout::fullscreenRequestForWindow(PHLWINDOW window,
PMONITOR->vecSize - PMONITOR->vecReservedTopLeft - PMONITOR->vecReservedBottomRight};
*window->m_vRealPosition = Vector2D(box.x, box.y);
*window->m_vRealSize = Vector2D(box.w, box.h);
window->sendWindowSize(window->m_vRealSize->goal());
}
}
} else {
Expand Down
4 changes: 0 additions & 4 deletions src/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class Window {
window->m_vSize = Vector2D(box.w, box.h);
*window->m_vRealPosition = window->m_vPosition;
*window->m_vRealSize = window->m_vSize;
window->sendWindowSize(window->m_vRealSize->goal());
}
bool is_window(PHLWINDOW w) const {
return window == w;
Expand All @@ -66,7 +65,6 @@ class Window {
window->m_vSize = Vector2D(std::max(window->m_vSize.x, 1.0), std::max(window->m_vSize.y, 1.0));
*window->m_vRealSize = window->m_vSize;
*window->m_vRealPosition = window->m_vPosition;
window->sendWindowSize(window->m_vRealSize->goal());
}

void move_to_bottom(double x, const Box &max, const Vector2D &gap_x, double gap) {
Expand Down Expand Up @@ -96,7 +94,6 @@ class Window {
window->m_vSize = Vector2D(std::max(w - reserved.topLeft.x - reserved.bottomRight.x - gap_x.x - gap_x.y, 1.0), std::max(get_geom_h() - reserved.topLeft.y - reserved.bottomRight.y - gap0 - gap1, 1.0));
*window->m_vRealPosition = window->m_vPosition;
*window->m_vRealSize = window->m_vSize;
window->sendWindowSize(window->m_vRealSize->goal());
}
bool can_resize_width(double geomw, double maxw, const Vector2D &gap_x, double gap, double deltax) {
// First, check if resize is possible or it would leave any window
Expand Down Expand Up @@ -180,7 +177,6 @@ class Window {
w->m_vSize = mem.vSize;
*w->m_vRealPosition = w->m_vPosition;
*w->m_vRealSize = w->m_vSize;
w->sendWindowSize(w->m_vRealSize->goal());
}

PHLWINDOWREF window;
Expand Down