mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fix rounded corners border sometimes bugging
This commit is contained in:
parent
1ac5665d09
commit
1f317f2ebc
1 changed files with 6 additions and 4 deletions
|
@ -416,13 +416,15 @@ void CWindowManager::setFocusedWindow(xcb_drawable_t window) {
|
|||
if (g_pWindowManager->getWindowFromDrawable(window) && g_pWindowManager->getWindowFromDrawable(window)->getIsFloating()) {
|
||||
values[0] = XCB_STACK_MODE_ABOVE;
|
||||
xcb_configure_window(g_pWindowManager->DisplayConnection, window, XCB_CONFIG_WINDOW_STACK_MODE, values);
|
||||
}
|
||||
|
||||
// Apply rounded corners, does all the checks inside.
|
||||
// The border changed so let's not make it rectangular maybe
|
||||
applyRoundedCornersToWindow(g_pWindowManager->getWindowFromDrawable(window));
|
||||
}
|
||||
|
||||
LastWindow = window;
|
||||
|
||||
applyRoundedCornersToWindow(g_pWindowManager->getWindowFromDrawable(window));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue