all repos — fluxbox @ 442c651d64c861a55665ad8dbd6a19a9c340c2ee

custom fork of the fluxbox windowmanager

fixed compiler warnings regarding signed/unsigned and () around expressions
Mathias Gumz akira at fluxbox dot org
commit

442c651d64c861a55665ad8dbd6a19a9c340c2ee

parent

81d9a28b336f4369d6e5981df58d72440d0a3ea6

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

jump to
M src/Window.ccsrc/Window.cc

@@ -2361,7 +2361,7 @@ }

void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) { - if (m_last_pressed_button == re.button) { + if (m_last_pressed_button == static_cast<int>(re.button)) { m_last_pressed_button = 0; }

@@ -2401,15 +2401,22 @@

inside_border = // if mouse is currently on the window border, ignore it - ! insideBorder(frame(), me.x_root, me.y_root, borderw) && - ( !frame().externalTabMode() || - ! insideBorder(frame().tabcontainer(), me.x_root, me.y_root, borderw) ) + ( + ! insideBorder(frame(), me.x_root, me.y_root, borderw) + && ( !frame().externalTabMode() + || ! insideBorder(frame().tabcontainer(), me.x_root, me.y_root, borderw) ) + + ) || // or if mouse was on border when it was last clicked - ! insideBorder(frame(), m_last_button_x, m_last_button_y, borderw) && - ( ! frame().externalTabMode() || - ! insideBorder(frame().tabcontainer(), m_last_button_x, m_last_button_y, borderw ) ); + ( + ! insideBorder(frame(), m_last_button_x, m_last_button_y, borderw) + && + ( ! frame().externalTabMode() + || ! insideBorder(frame().tabcontainer(), m_last_button_x, m_last_button_y, borderw ) + ) + ); } if (Fluxbox::instance()->getIgnoreBorder() && m_attaching_tab == 0