aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-04-22 21:07:57 (GMT)
committerfluxgen <fluxgen>2004-04-22 21:07:57 (GMT)
commit09eade65d558dfc032ac415607fc2c6eb99aea19 (patch)
treead0900955564f409f8edf85c2baebb19e611a04e /src/Window.cc
parent027741fbb409e945a2c3a632027c28981314b89a (diff)
downloadfluxbox-09eade65d558dfc032ac415607fc2c6eb99aea19.zip
fluxbox-09eade65d558dfc032ac415607fc2c6eb99aea19.tar.bz2
attach area, patch from Mathias Gumz
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc13
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