all repos — fluxbox @ f61ff3329e53ce7cfd80c881fc5846af9a37a485

custom fork of the fluxbox windowmanager

using moveresize instead of configure in fluxboxwindow
fluxgen fluxgen
commit

f61ff3329e53ce7cfd80c881fc5846af9a37a485

parent

1cc72819ff8ecaec05eb9d372af2e0ac0918f5b2

1 files changed, 16 insertions(+), 15 deletions(-)

jump to
M src/Tab.ccsrc/Tab.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Tab.cc,v 1.48 2002/12/07 13:36:03 fluxgen Exp $ +// $Id: Tab.cc,v 1.49 2003/01/05 22:38:53 fluxgen Exp $ #include "Tab.hh"

@@ -319,7 +319,7 @@

//now move and resize the windows in the list for (tab = getFirst(this); tab != 0; tab = tab->m_next) { if (tab!=this) { - tab->m_win->configure(m_win->getXFrame(), m_win->getYFrame(), + tab->m_win->moveResize(m_win->getXFrame(), m_win->getYFrame(), m_win->getWidth(), m_win->getHeight()); } }

@@ -375,12 +375,12 @@ size_t max_width = m_size_w; // special cases in rotated mode

if (winstyle->tab.font.isRotated() && !m_win->isShaded()) max_width = m_size_h; - int dx = DrawUtil::doAlignment(max_width, m_win->frame.bevel_w, + int dx = DrawUtil::doAlignment(max_width, 1, //m_win->frame.bevel_w, winstyle->tab.justify, winstyle->tab.font, m_win->getTitle().c_str(), m_win->getTitle().size(), dlen); - int dy = winstyle->tab.font.ascent() + m_win->frame.bevel_w; + int dy = winstyle->tab.font.ascent() + 1; //m_win->frame.bevel_w; bool rotate = false; // swap dx and dy if we're rotated if (winstyle->tab.font.isRotated() && !m_win->isShaded()) {

@@ -533,8 +533,8 @@

XMoveWindow(m_display, tab->m_tabwin, pos_x, pos_y); //dont move FluxboxWindow if the iterator = this - if (tab!=this) { - tab->m_win->configure(m_win->getXFrame(), m_win->getYFrame(), + if (tab != this) { + tab->m_win->moveResize(m_win->getXFrame(), m_win->getYFrame(), m_win->getWidth(), m_win->getHeight()); } }

@@ -669,10 +669,10 @@ }

//otherwise let the window handle the event else { //set window to titlewindow so we can take advantage of drag function - be->window = m_win->frame.title; + be->window = m_win->frame().titlebar().window(); //call windows buttonpress eventhandler - m_win->buttonPressEvent(be); + m_win->buttonPressEvent(*be); } }

@@ -770,9 +770,10 @@ }

} //TODO: this causes an calculate increase event, even if we // only are moving a window - m_win->configure(dest_x, dest_y, m_win->getWidth(), m_win->getHeight()); + m_win->moveResize(dest_x, dest_y, m_win->getWidth(), m_win->getHeight()); + if(!Fluxbox::instance()->useTabs()) - m_win->setTab(0);//Remove tab from window, as it is now alone... + m_win->setTab(false);//Remove tab from window, as it is now alone... } } } else {

@@ -781,10 +782,10 @@ //raise this tabwindow

raise(); //set window to title window soo we can use m_win handler for menu - be->window = m_win->frame.title; + be->window = m_win->frame().titlebar().window(); //call windows buttonrelease event handler so it can popup a menu if needed - m_win->buttonReleaseEvent(be); + m_win->buttonReleaseEvent(*be); } }

@@ -968,12 +969,12 @@

// if the window we are grouping to, we need to shade the tab window // _after_ reconfigure if(m_win->isShaded()) { - tab->m_win->configure(m_win->getXFrame(), m_win->getYFrame(), + tab->m_win->moveResize(m_win->getXFrame(), m_win->getYFrame(), m_win->getWidth(), m_win->getHeight()); tab->m_win->shade(); } else { tab->m_win->shade(); // switch to correct shade state - tab->m_win->configure(m_win->getXFrame(), m_win->getYFrame(), + tab->m_win->moveResize(m_win->getXFrame(), m_win->getYFrame(), m_win->getWidth(), m_win->getHeight()); }

@@ -985,7 +986,7 @@ // anything.

} else if ((m_win->getWidth() != tab->m_win->getWidth()) || (m_win->getHeight() != tab->m_win->getHeight())) { - tab->m_win->configure(m_win->getXFrame(), m_win->getYFrame(), + tab->m_win->moveResize(m_win->getXFrame(), m_win->getYFrame(), m_win->getWidth(), m_win->getHeight()); // need to shade the tab window as configure will mess it up