16 lines
665 B
Diff
16 lines
665 B
Diff
---
|
|
src/wmmgr.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- src/wmmgr.cc.orig
|
|
+++ src/wmmgr.cc
|
|
@@ -1222,7 +1222,7 @@ void YWindowManager::setWindows(YFrameWi
|
|
void YWindowManager::getNewPosition(YFrameWindow *frame, int &x, int &y, int w, int h, int xiscreen) {
|
|
if (centerTransientsOnOwner && frame->owner() != 0) {
|
|
x = frame->owner()->x() + frame->owner()->width() / 2 - w / 2;
|
|
- y = frame->owner()->y() + frame->owner()->width() / 2 - h / 2;
|
|
+ y = frame->owner()->y() + frame->owner()->height() / 2 - h / 2;
|
|
} else if (smartPlacement) {
|
|
getSmartPlace(true, frame, x, y, w, h, xiscreen);
|
|
} else {
|