aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-10-19 04:46:05 (GMT)
committermathias <mathias>2005-10-19 04:46:05 (GMT)
commit4dec832b6bcef0503ac092a8cfdc370ab65f8f8f (patch)
tree41dfe4d023ca4ff300e6f82888164c657e943b32 /src/Window.cc
parent97aa10ece46fa9b29edb66eeefd5abd34b30def8 (diff)
downloadfluxbox_pavel-4dec832b6bcef0503ac092a8cfdc370ab65f8f8f.zip
fluxbox_pavel-4dec832b6bcef0503ac092a8cfdc370ab65f8f8f.tar.bz2
Fixed reordering of tabs, patch from Rob Stevens
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 2190c5c..82df391 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -895,7 +895,7 @@ FluxboxWindow::ClientList::iterator FluxboxWindow::getClientInsertPosition(int x
895 int dest_x = 0, dest_y = 0; 895 int dest_x = 0, dest_y = 0;
896 Window labelbutton = 0; 896 Window labelbutton = 0;
897 if (!XTranslateCoordinates(FbTk::App::instance()->display(), 897 if (!XTranslateCoordinates(FbTk::App::instance()->display(),
898 parent().window(), frame().label().window(), 898 parent().window(), frame().tabcontainer().window(),
899 x, y, &dest_x, &dest_y, 899 x, y, &dest_x, &dest_y,
900 &labelbutton)) 900 &labelbutton))
901 return m_clientlist.end(); 901 return m_clientlist.end();
@@ -915,7 +915,7 @@ FluxboxWindow::ClientList::iterator FluxboxWindow::getClientInsertPosition(int x
915 Window child_return=0; 915 Window child_return=0;
916 // make x and y relative to our labelbutton 916 // make x and y relative to our labelbutton
917 if (!XTranslateCoordinates(FbTk::App::instance()->display(), 917 if (!XTranslateCoordinates(FbTk::App::instance()->display(),
918 frame().label().window(), labelbutton, 918 frame().tabcontainer().window(), labelbutton,
919 dest_x, dest_y, &x, &y, 919 dest_x, dest_y, &x, &y,
920 &child_return)) 920 &child_return))
921 return m_clientlist.end(); 921 return m_clientlist.end();
@@ -936,7 +936,7 @@ void FluxboxWindow::moveClientTo(WinClient &win, int x, int y) {
936 int dest_x = 0, dest_y = 0; 936 int dest_x = 0, dest_y = 0;
937 Window labelbutton = 0; 937 Window labelbutton = 0;
938 if (!XTranslateCoordinates(FbTk::App::instance()->display(), 938 if (!XTranslateCoordinates(FbTk::App::instance()->display(),
939 parent().window(), frame().label().window(), 939 parent().window(), frame().tabcontainer().window(),
940 x, y, &dest_x, &dest_y, 940 x, y, &dest_x, &dest_y,
941 &labelbutton)) 941 &labelbutton))
942 return; 942 return;
@@ -955,11 +955,11 @@ void FluxboxWindow::moveClientTo(WinClient &win, int x, int y) {
955 Window child_return = 0; 955 Window child_return = 0;
956 //make x and y relative to our labelbutton 956 //make x and y relative to our labelbutton
957 if (!XTranslateCoordinates(FbTk::App::instance()->display(), 957 if (!XTranslateCoordinates(FbTk::App::instance()->display(),
958 frame().label().window(), labelbutton, 958 frame().tabcontainer().window(), labelbutton,
959 dest_x, dest_y, &x, &y, 959 dest_x, dest_y, &x, &y,
960 &child_return)) 960 &child_return))
961 return; 961 return;
962 if (x > (*it).second->width() / 2) 962 if (x > (*it).second->width() / 2)
963 moveClientRightOf(win, *it->first); 963 moveClientRightOf(win, *it->first);
964 else 964 else
965 moveClientLeftOf(win, *it->first); 965 moveClientLeftOf(win, *it->first);