all repos — fluxbox @ 7b65db91729534a80d777094927a767eb8849da2

custom fork of the fluxbox windowmanager

fixed getHeight
fluxgen fluxgen
commit

7b65db91729534a80d777094927a767eb8849da2

parent

674aa1fc9519ea82df248ef2925a2b78af10fa3a

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

jump to
M src/Basemenu.ccsrc/Basemenu.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: Basemenu.cc,v 1.20 2002/04/08 22:37:49 fluxgen Exp $ +// $Id: Basemenu.cc,v 1.21 2002/04/09 12:22:06 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -589,7 +589,7 @@ if (y < head_y)

y = head_y; #else // !XINERAMA - if ((x + item->submenu()->width()) > m_screen->width()) { + if ((x + item->submenu()->width()) > m_screen->getWidth()) { x = ((shifted) ? menu.x_shift : menu.x) - item->submenu()->width() - m_screen->getBorderWidth(); }

@@ -597,8 +597,8 @@

if (x < 0) x = 0; - if ((y + item->submenu()->getHeight()) > m_screen->getHeight()) { - y = m_screen->getHeight() - item->submenu()->getHeight() - + if ((y + item->submenu()->height()) > m_screen->getHeight()) { + y = m_screen->getHeight() - item->submenu()->height() - m_screen->getBorderWidth2x(); }