aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index b2c87b9..f6fd139 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -522,8 +522,8 @@ void FluxboxWindow::init() {
522 layerItem().setLayer(twin->layerItem().getLayer()); 522 layerItem().setLayer(twin->layerItem().getLayer());
523 m_state.layernum = twin->layerNum(); 523 m_state.layernum = twin->layerNum();
524 m_workspace_number = twin->workspaceNumber(); 524 m_workspace_number = twin->workspaceNumber();
525 const int x = twin->frame().x() + (twin->frame().width() - frame().width())/2; 525 const int x = twin->frame().x() + int(twin->frame().width() - frame().width())/2;
526 const int y = twin->frame().y() + (twin->frame().height() - frame().height())/2; 526 const int y = twin->frame().y() + int(twin->frame().height() - frame().height())/2;
527 frame().move(x, y); 527 frame().move(x, y);
528 m_placed = true; 528 m_placed = true;
529 } else // if no parent then set default layer 529 } else // if no parent then set default layer