You must set the optional after parameter in connect() to false: signal_button_press_event().connect(sigc::mem_fun(*this, &DrawingArea::draw_get_mouse), false); See https://developer.gnome.org/gtkmm-tutorial/stable/sec-xeventsignals.html.en If you want normal event processing to continue after your draw_get_mouse() method has been executed, it shall return false. On 2019-02-28 18:12,
Радомир Хаџић via gtkmm-list wrote:
I want to get mouse movement events when a user moves cursor while holding button 1 but am unable to. Here, I wrote a small piece of code that illustrates the problem. I've sent it as an attachment but you can also see it here: https://pastebin.com/WcZrtBQR. |