all repos — fluxbox @ 1d14c6ff8afb5776d7f66e46dcbef76a178edc88

custom fork of the fluxbox windowmanager

minor cleaning
fluxgen fluxgen
commit

1d14c6ff8afb5776d7f66e46dcbef76a178edc88

parent

fee7bd2e6553e58baf0d5802cf51e8f572fc4fc8

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

jump to
M src/Slit.ccsrc/Slit.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: Slit.cc,v 1.19 2002/07/23 18:38:31 fluxgen Exp $ +// $Id: Slit.cc,v 1.20 2002/08/14 21:51:07 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -521,7 +521,7 @@ slitmenu.reconfigure();

} -void Slit::reposition(void) { +void Slit::reposition() { int head_x = 0, head_y = 0, head_w,

@@ -667,7 +667,7 @@ frame.y, frame.width, frame.height);

} -void Slit::shutdown(void) { +void Slit::shutdown() { saveClientList(); while (clientList.size() != 0) removeClient(clientList.front(), true, true);

@@ -710,9 +710,11 @@ if (! do_auto_hide)

return; if (hidden) { - if (! timer.isTiming()) timer.start(); + if (! timer.isTiming()) + timer.start(); } else { - if (timer.isTiming()) timer.stop(); + if (timer.isTiming()) + timer.stop(); } }

@@ -722,9 +724,11 @@ if (! do_auto_hide)

return; if (hidden) { - if (timer.isTiming()) timer.stop(); + if (timer.isTiming()) + timer.stop(); } else if (! slitmenu.isVisible()) { - if (! timer.isTiming()) timer.start(); + if (! timer.isTiming()) + timer.start(); } }

@@ -768,7 +772,7 @@ fluxbox->ungrab();

} -void Slit::timeout(void) { +void Slit::timeout() { hidden = ! hidden; if (hidden) XMoveWindow(display, frame.window, frame.x_hidden, frame.y_hidden);

@@ -776,11 +780,10 @@ else

XMoveWindow(display, frame.window, frame.x, frame.y); } -void Slit::loadClientList(void) { +void Slit::loadClientList() { const std::string &filename = fluxbox->getSlitlistFilename(); struct stat buf; - if (!stat(filename.c_str(), &buf)) - { + if (!stat(filename.c_str(), &buf)) { std::ifstream file(fluxbox->getSlitlistFilename().c_str()); std::string name; while (! file.eof()) {

@@ -860,7 +863,7 @@

} -Slitmenu::~Slitmenu(void) { +Slitmenu::~Slitmenu() { delete directionmenu; delete placementmenu; #ifdef XINERAMA