aboutsummaryrefslogtreecommitdiff
path: root/src/Basemenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Basemenu.cc')
-rw-r--r--src/Basemenu.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc
index 802654f..9ddcb2e 100644
--- a/src/Basemenu.cc
+++ b/src/Basemenu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Basemenu.cc,v 1.20 2002/04/08 22:37:49 fluxgen Exp $ 25// $Id: Basemenu.cc,v 1.21 2002/04/09 12:22:06 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -589,7 +589,7 @@ void Basemenu::drawSubmenu(unsigned int index) {
589 y = head_y; 589 y = head_y;
590 #else // !XINERAMA 590 #else // !XINERAMA
591 591
592 if ((x + item->submenu()->width()) > m_screen->width()) { 592 if ((x + item->submenu()->width()) > m_screen->getWidth()) {
593 x = ((shifted) ? menu.x_shift : menu.x) - 593 x = ((shifted) ? menu.x_shift : menu.x) -
594 item->submenu()->width() - m_screen->getBorderWidth(); 594 item->submenu()->width() - m_screen->getBorderWidth();
595 } 595 }
@@ -597,8 +597,8 @@ void Basemenu::drawSubmenu(unsigned int index) {
597 if (x < 0) 597 if (x < 0)
598 x = 0; 598 x = 0;
599 599
600 if ((y + item->submenu()->getHeight()) > m_screen->getHeight()) { 600 if ((y + item->submenu()->height()) > m_screen->getHeight()) {
601 y = m_screen->getHeight() - item->submenu()->getHeight() - 601 y = m_screen->getHeight() - item->submenu()->height() -
602 m_screen->getBorderWidth2x(); 602 m_screen->getBorderWidth2x();
603 } 603 }
604 604