summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-10-24 03:44:39 (GMT)
committermarkt <markt>2007-10-24 03:44:39 (GMT)
commitb504021145c9d79759c3809c4001ee2acdf4a5aa (patch)
tree8cf1dfa7beee656a075042682b6c600e4423be5c /src/Window.cc
parent42ace977752c4e2dc9e77794d0f9ac73c53437ef (diff)
downloadfluxbox_lack-b504021145c9d79759c3809c4001ee2acdf4a5aa.zip
fluxbox_lack-b504021145c9d79759c3809c4001ee2acdf4a5aa.tar.bz2
really fix placement when head is remembered but not position
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 51a7ee9..bd39855 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -480,6 +480,8 @@ void FluxboxWindow::init() {
480 real_y <= (signed) screen().height()) 480 real_y <= (signed) screen().height())
481 m_placed = true; 481 m_placed = true;
482 482
483 } else if (!m_placed) {
484 setOnHead(screen().getCurrHead());
483 } 485 }
484/* 486/*
485 if (wattrib.width <= 0) 487 if (wattrib.width <= 0)
@@ -4096,6 +4098,10 @@ int FluxboxWindow::getDecoMaskFromString(const string &str_label) {
4096 return mask; 4098 return mask;
4097} 4099}
4098 4100
4101int FluxboxWindow::getOnHead() const {
4102 return screen().getHead(fbWindow());
4103}
4104
4099void FluxboxWindow::setOnHead(int head) { 4105void FluxboxWindow::setOnHead(int head) {
4100 if (head > 0 && head <= screen().numHeads()) { 4106 if (head > 0 && head <= screen().numHeads()) {
4101 int cur = screen().getHead(fbWindow()); 4107 int cur = screen().getHead(fbWindow());