fix placement issue with xinerama (only hit if screens are vertically aligned)

This commit is contained in:
simonb 2006-06-19 08:39:00 +00:00
parent f6140840f8
commit a6146af44f
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,10 @@
(Format: Year/Month/Day)
Changes for 1.0rc2:
*06/06/19:
* Fix menu placement issue with (vertical) xinerama (Simon)
- note, doesn't fix "submenus open on wrong screen" issue, that requires
some more serious data movement.
FbTk/Menu.cc
* Fix bug #1507671, clock not updating on multiple screens (Simon)
- time() and gettimeofday() are inconsistent, only use gettimeofday
- clean up Timer stuff a bit, fixed some other bugs

View file

@ -1075,8 +1075,8 @@ void Menu::enterNotifyEvent(XCrossingEvent &ce) {
m_shifted = true;
}
if (y() + height() + 2*theme().borderWidth() > m_screen_height) {
menu.y_shift = m_screen_height - height() - 2*theme().borderWidth();
if (y() + height() + 2*theme().borderWidth() > m_screen_y + m_screen_height) {
menu.y_shift = m_screen_y + m_screen_height - height() - 2*theme().borderWidth();
m_shifted = true;
} else if (y() + (signed) theme().titleHeight() < 0) {
menu.y_shift = 0; // -theme().borderWidth();;