aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authormathias <mathias>2004-12-13 12:17:58 (GMT)
committermathias <mathias>2004-12-13 12:17:58 (GMT)
commit2095468fe6e2b757948e9f8a77953b9196e29065 (patch)
tree3745ee7a4a826ef4f5b90a3102696d1fac94d54b /src/FbWinFrame.cc
parent60e90553ed5d2d1b84151990610de35a25770c78 (diff)
downloadfluxbox_pavel-2095468fe6e2b757948e9f8a77953b9196e29065.zip
fluxbox_pavel-2095468fe6e2b757948e9f8a77953b9196e29065.tar.bz2
applied patch from Rob Stevens:
fixes dragNdrop ordering of tabs so next/prevtab are not confused -> modification of m_clientlist
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 7f4b4c8..de0c962 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -410,15 +410,11 @@ void FbWinFrame::moveLabelButtonLeftOf(const FbTk::TextButton &btn, const FbTk::
410 &dest); 410 &dest);
411 411
412 // make sure we found them 412 // make sure we found them
413 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()) 413 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()) {
414 {
415 cout<<"button to move not found"<<endl;
416 return; 414 return;
417 } 415 }
418 //moving a button to the left of itself results in no change 416 //moving a button to the left of itself results in no change
419 if( new_pos == it) 417 if( new_pos == it) {
420 {
421 cout<<"source and dest button are the same"<<endl;
422 return; 418 return;
423 } 419 }
424 FbTk::TextButton *item = *it; 420 FbTk::TextButton *item = *it;
@@ -439,15 +435,11 @@ void FbWinFrame::moveLabelButtonRightOf(const FbTk::TextButton &btn, const FbTk:
439 &dest); 435 &dest);
440 436
441 // make sure we found them 437 // make sure we found them
442 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()) 438 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()){
443 {
444 cout<<"button to move not found"<<endl;
445 return; 439 return;
446 } 440 }
447 //moving a button to the right of itself results in no change 441 //moving a button to the right of itself results in no change
448 if( new_pos == it) 442 if( new_pos == it){
449 {
450 cout<<"source and dest button are the same"<<endl;
451 return; 443 return;
452 } 444 }
453 FbTk::TextButton *item = *it; 445 FbTk::TextButton *item = *it;