diff --git a/src/holt_container_window.cc b/src/holt_container_window.cc index 9590a73..9161a43 100644 --- a/src/holt_container_window.cc +++ b/src/holt_container_window.cc @@ -68,7 +68,7 @@ HoltWidget& HoltContainerWindow::get_holt_widget() bool HoltContainerWindow::on_button_press_event(GdkEventButton* event) { - if( (event->type == GDK_BUTTON_PRESS) && (event->button == 3) ) + if((event->type & Gdk::BUTTON_PRESS) == Gdk::BUTTON_PRESS && (event->button == 3)) { Glib::ustring ui_info = ""