all repos — fluxbox @ 830ffc0c6f5263b2decdac4ba74aa75fd47c78e4

custom fork of the fluxbox windowmanager

fix slit auto hide triggering
rathnor rathnor
commit

830ffc0c6f5263b2decdac4ba74aa75fd47c78e4

parent

ed3f64bc5fc84fe1d33b3c95e9ea7efeb6012f81

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

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 0.9.2: *03/05/01: + * Fix slit autohide triggering (Simon) + Slit.cc * Clean ups and optimising of redraw/reconfigures Also fixes warping in outline focus bug (Simon) Window.hh/cc FbWinFrame.hh/cc
M src/Slit.ccsrc/Slit.cc

@@ -22,7 +22,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: Slit.cc,v 1.42 2003/04/25 17:27:36 fluxgen Exp $ +// $Id: Slit.cc,v 1.43 2003/05/01 15:03:36 rathnor Exp $ #include "Slit.hh"

@@ -761,6 +761,9 @@

break; } + if (do_auto_hide && !hidden && !timer.isTiming()) + timer.start(); + slitmenu.reconfigure(); updateClientmenu(); }

@@ -1007,6 +1010,11 @@ timer.stop();

} else if (! slitmenu.isVisible()) { if (! timer.isTiming()) timer.start(); + } else { + // the menu is open, keep it firing until it closes + timer.fireOnce(false); + if (! timer.isTiming()) + timer.start(); } }

@@ -1049,6 +1057,10 @@ }

void Slit::timeout() { + if (!slitmenu.isVisible()) { + timer.fireOnce(true); + } else + return; hidden = ! hidden; // toggle hidden state if (hidden) frame.window.move(frame.x_hidden, frame.y_hidden);