diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc index 0b306ef..ff93633 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.cc,v 1.281 2004/04/18 21:17:36 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.282 2004/04/22 21:07:57 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -3095,9 +3095,16 @@ void FluxboxWindow::attachTo(int x, int y) { | |||
3095 | // search for a fluxboxwindow | 3095 | // search for a fluxboxwindow |
3096 | WinClient *client = Fluxbox::instance()->searchWindow(child); | 3096 | WinClient *client = Fluxbox::instance()->searchWindow(child); |
3097 | FluxboxWindow *attach_to_win = 0; | 3097 | FluxboxWindow *attach_to_win = 0; |
3098 | if (client) | 3098 | if (client) { |
3099 | Fluxbox::TabsAttachArea area= Fluxbox::instance()->getTabsAttachArea(); | ||
3100 | if (area == Fluxbox::ATTACH_AREA_WINDOW) | ||
3099 | attach_to_win = client->fbwindow(); | 3101 | attach_to_win = client->fbwindow(); |
3100 | 3102 | else if (area == Fluxbox::ATTACH_AREA_TITLEBAR) { | |
3103 | if(client->fbwindow()->hasTitlebar() && | ||
3104 | client->fbwindow()->y() + client->fbwindow()->titlebarHeight() > dest_y) | ||
3105 | attach_to_win = client->fbwindow(); | ||
3106 | } | ||
3107 | } | ||
3101 | if (attach_to_win != this && | 3108 | if (attach_to_win != this && |
3102 | attach_to_win != 0) { | 3109 | attach_to_win != 0) { |
3103 | 3110 | ||