all repos — fluxbox @ cd9d9941e6a1a132a16df19ea1eca65f49361133

custom fork of the fluxbox windowmanager

minor fixes, fixed popupMenu position if m_last_button_x is outside window
fluxgen fluxgen
commit

cd9d9941e6a1a132a16df19ea1eca65f49361133

parent

2e5776733219a5f3c6ab3acd0f4f369be76b764a

1 files changed, 3 insertions(+), 4 deletions(-)

jump to
M src/Window.ccsrc/Window.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: Window.cc,v 1.261 2004/01/16 11:58:45 fluxgen Exp $ +// $Id: Window.cc,v 1.262 2004/01/17 00:49:20 fluxgen Exp $ #include "Window.hh"

@@ -1942,7 +1942,8 @@

int menu_y = frame().titlebar().height() + frame().titlebar().borderWidth(); if (!decorations.titlebar) // if we don't have any titlebar menu_y = 0; - + if (m_last_button_x < x() || m_last_button_x > x() + width()) + m_last_button_x = x(); showMenu(m_last_button_x, menu_y + frame().y()); }

@@ -3327,8 +3328,6 @@ // sets up our window

// we allow both to be done at once to share the commands WinButtonTheme &winbutton_theme = screen().winButtonTheme(); - - typedef FbTk::RefCount<FbTk::Command> CommandRef; using namespace FbTk; typedef RefCount<Command> CommandRef;