all repos — fluxbox @ c0777f792c3bb75e3f5fc048b531a06efe01f112

custom fork of the fluxbox windowmanager

fix to make separators are not clickable/selectable
akir akir
commit

c0777f792c3bb75e3f5fc048b531a06efe01f112

parent

c6208c29c345910a27b6774274a472d7cc738450

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M src/FbTk/Menu.ccsrc/FbTk/Menu.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: Menu.cc,v 1.85 2004/09/12 14:56:19 rathnor Exp $ +// $Id: Menu.cc,v 1.86 2004/09/29 09:58:11 akir Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -1083,7 +1083,7 @@

int sbl = (be.x / menu.item_w), i = (be.y / theme().itemHeight()); int w = (sbl * menu.persub) + i; - if (validIndex(w)) { + if (validIndex(w) && isItemSelectable(static_cast<unsigned int>(w))) { which_press = i; which_sbl = sbl;

@@ -1138,7 +1138,7 @@ ix = sbl * menu.item_w, iy = i * theme().itemHeight(),

w = (sbl * menu.persub) + i, p = (which_sbl * menu.persub) + which_press; - if (validIndex(w)) { + if (validIndex(w) && isItemSelectable(static_cast<unsigned int>(w))) { if (p == w && isItemEnabled(w)) { if (re.x > ix && re.x < (signed) (ix + menu.item_w) && re.y > iy && re.y < (signed) (iy + theme().itemHeight())) {

@@ -1146,11 +1146,11 @@ menuitems[w]->click(re.button, re.time);

itemSelected(re.button, w); } } - } - drawItem(p, - true, // clear - true); // transparent + drawItem(p, + true, // clear + true); // transparent + } } }