mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fixed #24
This commit is contained in:
parent
e0034f7386
commit
fa35537903
1 changed files with 12 additions and 2 deletions
|
@ -366,10 +366,8 @@ void CWindowManager::refreshDirtyWindows() {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// first and foremost, let's check if the window isn't on a hidden workspace
|
// first and foremost, let's check if the window isn't on a hidden workspace
|
||||||
// or that it is not a non-fullscreen window in a fullscreen workspace thats under
|
|
||||||
// or an animated workspace
|
// or an animated workspace
|
||||||
if (!isWorkspaceVisible(window.getWorkspaceID())
|
if (!isWorkspaceVisible(window.getWorkspaceID())
|
||||||
|| (bHasFullscreenWindow && !window.getFullscreen() && (window.getUnderFullscreen() || !window.getIsFloating()))
|
|
||||||
|| PWORKSPACE->getAnimationInProgress()) {
|
|| PWORKSPACE->getAnimationInProgress()) {
|
||||||
|
|
||||||
Values[0] = (int)window.getRealPosition().x + (int)PWORKSPACE->getCurrentOffset().x;
|
Values[0] = (int)window.getRealPosition().x + (int)PWORKSPACE->getCurrentOffset().x;
|
||||||
|
@ -392,6 +390,18 @@ void CWindowManager::refreshDirtyWindows() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// or that it is not a non-fullscreen window in a fullscreen workspace thats under
|
||||||
|
if (bHasFullscreenWindow && !window.getFullscreen() && (window.getUnderFullscreen() || !window.getIsFloating())) {
|
||||||
|
Values[0] = 150000;
|
||||||
|
Values[1] = 150000;
|
||||||
|
if (VECTORDELTANONZERO(window.getLastUpdatePosition(), Vector2D(Values[0], Values[1]))) {
|
||||||
|
xcb_configure_window(DisplayConnection, window.getDrawable(), XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, Values);
|
||||||
|
window.setLastUpdatePosition(Vector2D(Values[0], Values[1]));
|
||||||
|
}
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Fullscreen window. No border, all screen.
|
// Fullscreen window. No border, all screen.
|
||||||
if (window.getFullscreen()) {
|
if (window.getFullscreen()) {
|
||||||
Values[0] = 0;
|
Values[0] = 0;
|
||||||
|
|
Loading…
Reference in a new issue