diff --git a/README b/README index cab24b0..9628d1a 100644 --- a/README +++ b/README @@ -2,18 +2,16 @@ ABOUT : WMFS Window Manager. * Window Manager From Scratch -A small Window Manager created from /dev/null. (;-)) +A small Window Manager created from scratch AUTHORS : - * Code : Martin Duquesnoy - * Build System & other : Marc Lagrange + Martin Duquesnoy LICENSE : BSD REQUIREMENT : · libconfuse · freetype2 - · xpm · xft · libx11 · CMake >= 2.6 @@ -28,12 +26,9 @@ INSTALL : · cmake .. · make · sudo make install - · sudo make uninstall if you would to remove it. - -By default, wmfs logos are'nt installed. You can install it with : cmake -DWITH_LOGOS=ON .. + · sudo make uninstall # if you would to remove it. If you have doxygen installed you can generate doxygen documentation via custom target 'make doc' in the build dir. DISTROS : - · wmfs ebuild for Gentoo is available in the Sangor's overlay. More infos at http://wmfs.sangor.net/view/download/ · wmfs port for FreeBSD at x11-wm/wmfs diff --git a/src/layout.c b/src/layout.c index ce81e06..7907ff4 100644 --- a/src/layout.c +++ b/src/layout.c @@ -172,6 +172,8 @@ void uicb_set_mwfact(uicb_t cmd) { double c; + char infostr[20] = { 0 }; + BarWindow *infowin; screen_get_sel(); @@ -184,6 +186,21 @@ uicb_set_mwfact(uicb_t cmd) tags[selscreen][seltag[selscreen]].mwfact += c; tags[selscreen][seltag[selscreen]].layout.func(selscreen); + sprintf(infostr, "Mwfact: %.3lf", tags[selscreen][seltag[selscreen]].mwfact); + + infowin = barwin_create(ROOT, + spgeo[selscreen].x + (spgeo[selscreen].width / 2) - (textw(infostr) / 2), + spgeo[selscreen].y + (spgeo[selscreen].height / 2) - (INFOBARH / 2), + textw(infostr) + PAD, + + INFOBARH, conf.colors.bar, conf.colors.text, False, False, False); + + barwin_map(infowin); + barwin_refresh_color(infowin); + barwin_draw_text(infowin, PAD / 2, font->height, infostr); + usleep(50000); + // barwin_delete(infowin); + return; }