diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | mbinputmgr-tray.c | 13 |
2 files changed, 14 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2005-05-23 mallum,,, <mallum@openedhand.com> + + * mbinputmgr-tray.c: (button_callback), (xevent_callback): + Remove random printf, postion menu better for titlebar panels. + 2004-12-23 mallum,,, <mallum@openedhand.com> * autogen.sh: diff --git a/mbinputmgr-tray.c b/mbinputmgr-tray.c index c0b91a0..afebcfa 100644 --- a/mbinputmgr-tray.c +++ b/mbinputmgr-tray.c @@ -228,6 +228,15 @@ button_callback (MBTrayApp *app, int x, int y, Bool is_released ) || (!mb_tray_app_tray_is_vertical (app) && x > IconWidth) ) { mb_tray_app_get_absolute_coords (app, &abs_x, &abs_y); + + /* aligned top, position down a little */ + if (abs_y < 8) + { + int w, h; + mb_menu_get_root_menu_size(PopupMenu, &w, &h); + abs_y = h + IconDim + 2; + } + mb_menu_activate(PopupMenu, abs_x, abs_y); ButtonActive = BUTTON_MENU; } @@ -257,14 +266,10 @@ xevent_callback (MBTrayApp *app, XEvent *ev) { if (ev->type == ClientMessage) { - printf("beep\n"); - XClientMessageEvent *cmev = (XClientMessageEvent *)&ev->xconfigure; if (cmev->message_type == AtomIMActivate) { - printf("beep\n"); - /* De Activate */ if (cmev->data.l[0] == 0 && mbinputmgr_method_active(Inpmgr_state)) mbinputmgr_toggle_selected_method (Inpmgr_state); |