diff options
author | simonb <simonb> | 2006-06-19 08:39:00 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-06-19 08:39:00 (GMT) |
commit | a6146af44f3ef1f44894d5545f449f46db8a3c79 (patch) | |
tree | 9dbc92180b02c95cce23ffe6b15751f3c5dc3b5a /src/FbTk | |
parent | f6140840f85e35354c219e3a505c6d1aeb4d3837 (diff) | |
download | fluxbox_pavel-a6146af44f3ef1f44894d5545f449f46db8a3c79.zip fluxbox_pavel-a6146af44f3ef1f44894d5545f449f46db8a3c79.tar.bz2 |
fix placement issue with xinerama (only hit if screens are vertically aligned)
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Menu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index d400e00..b0e5c4e 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -1075,8 +1075,8 @@ void Menu::enterNotifyEvent(XCrossingEvent &ce) { | |||
1075 | m_shifted = true; | 1075 | m_shifted = true; |
1076 | } | 1076 | } |
1077 | 1077 | ||
1078 | if (y() + height() + 2*theme().borderWidth() > m_screen_height) { | 1078 | if (y() + height() + 2*theme().borderWidth() > m_screen_y + m_screen_height) { |
1079 | menu.y_shift = m_screen_height - height() - 2*theme().borderWidth(); | 1079 | menu.y_shift = m_screen_y + m_screen_height - height() - 2*theme().borderWidth(); |
1080 | m_shifted = true; | 1080 | m_shifted = true; |
1081 | } else if (y() + (signed) theme().titleHeight() < 0) { | 1081 | } else if (y() + (signed) theme().titleHeight() < 0) { |
1082 | menu.y_shift = 0; // -theme().borderWidth();; | 1082 | menu.y_shift = 0; // -theme().borderWidth();; |