Signal Handler sequence
By default, your signal handlers are called after any previously-connected signal handlers. However, this can be a problem with the X Event signals. For instance, the existing signal handlers, or the default signal handler, might return true to stop other signal handlers from being called. To specify that your signal handler should be called before the other signal handlers, so that will always be called, you can specify
false
for the optionalafter
parameter. For instance,button.signal_button_press_event().connect( sigc::ptr_fun(&on_mywindow_button_press), false );
signal_button_press_event().connect(sigc::mem_fun(this, &FieldView::on_button_press), false);