fix slit auto hide triggering
rathnor rathnor
2 files changed,
15 insertions(+),
1 deletions(-)
M
src/Slit.cc
→
src/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);