diff options
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()); |