diff options
author | markt <markt> | 2007-10-24 03:44:39 (GMT) |
---|---|---|
committer | markt <markt> | 2007-10-24 03:44:39 (GMT) |
commit | b504021145c9d79759c3809c4001ee2acdf4a5aa (patch) | |
tree | 8cf1dfa7beee656a075042682b6c600e4423be5c /src/Window.cc | |
parent | 42ace977752c4e2dc9e77794d0f9ac73c53437ef (diff) | |
download | fluxbox-b504021145c9d79759c3809c4001ee2acdf4a5aa.zip fluxbox-b504021145c9d79759c3809c4001ee2acdf4a5aa.tar.bz2 |
really fix placement when head is remembered but not position
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 6 |
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 | ||
4101 | int FluxboxWindow::getOnHead() const { | ||
4102 | return screen().getHead(fbWindow()); | ||
4103 | } | ||
4104 | |||
4099 | void FluxboxWindow::setOnHead(int head) { | 4105 | void 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()); |