minor usability fix for :Tab command and fixed handle rendering when switching from a style without them
This commit is contained in:
parent
5fcb520bbb
commit
562fa26423
3 changed files with 13 additions and 5 deletions
|
@ -1,6 +1,12 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 1.0.0:
|
||||
*07/07/02:
|
||||
* Fixed handle rendering when switching from a style without them (Mark)
|
||||
FbWinFrame.cc
|
||||
* Changed :Tab <int> key command so that the last tab is focused if <int> is
|
||||
larger than the number of tabs (or first if <int> is negative and |<int>|
|
||||
is too large) (Mark)
|
||||
CurrentWindowCmd.cc
|
||||
* Fixed some rendering problems when toolbar item borderwidth is too large
|
||||
and toolbar bevelwidth is set (Mark)
|
||||
Toolbar.cc
|
||||
|
|
|
@ -85,9 +85,10 @@ void TakeToPrevWorkspaceCmd::real_execute() {
|
|||
}
|
||||
|
||||
void GoToTabCmd::real_execute() {
|
||||
int num = m_tab_num + (m_tab_num > 0 ? 0 : fbwindow().numClients() + 1);
|
||||
if (num < 1 || num > fbwindow().numClients())
|
||||
return;
|
||||
int num = m_tab_num;
|
||||
if (num < 0) num += fbwindow().numClients() + 1;
|
||||
if (num < 1) num = 1;
|
||||
if (num > fbwindow().numClients()) num = fbwindow().numClients();
|
||||
|
||||
FluxboxWindow::ClientList::iterator it = fbwindow().clientList().begin();
|
||||
|
||||
|
|
|
@ -833,10 +833,11 @@ bool FbWinFrame::showHandle() {
|
|||
if (m_use_handle || theme().handleWidth() == 0)
|
||||
return false;
|
||||
|
||||
m_use_handle = true;
|
||||
|
||||
// weren't previously rendered...
|
||||
renderHandles();
|
||||
|
||||
m_use_handle = true;
|
||||
applyHandles();
|
||||
|
||||
m_handle.show();
|
||||
m_handle.showSubwindows(); // shows grips
|
||||
|
|
Loading…
Reference in a new issue