diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/idocalendarmenuitem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c index aa59989..4eac1c5 100644 --- a/src/idocalendarmenuitem.c +++ b/src/idocalendarmenuitem.c @@ -227,8 +227,8 @@ ido_calendar_menu_item_button_press (GtkWidget *widget, ((GdkEventButton *)newevent)->window = newwindow; - //gdk_window_get_position((GdkWindow*)child->data, &winx, &winy); gdk_window_get_position(newwindow, &winx, &winy); + g_debug("Window position: %dx%d", winx, winy); newx = root_x - winx; newy = root_y - winy; @@ -237,8 +237,8 @@ ido_calendar_menu_item_button_press (GtkWidget *widget, //if (newx >= 0 && newy >= 0 && newx < gdk_window_get_width(newwindow) && newy < gdk_window_get_height(newwindow)) { gboolean returned = FALSE; g_debug("Simulating event at: %dx%d", newx, newy); - ((GdkEventButton *)newevent)->x = newx; - ((GdkEventButton *)newevent)->y = newy; + //((GdkEventButton *)newevent)->x = newx; + //((GdkEventButton *)newevent)->y = newy; returned = GTK_WIDGET_GET_CLASS(calendar)->button_press_event(GTK_WIDGET(calendar), (GdkEventButton*)newevent); if (returned) { |