Hello Thorsten, Thanks a lot for your reply. I've been able to solve the problem (see code below: grabbing the device list without reference to the main window works a charm...). I don't understand why the above method failed (the display has a devices_list method, and it reports the same list as Gtk2::Gdk->devices_list()), but I can live with that ;-)
Cheers, Guillaume my @devices = Gtk2::Gdk->devices_list(); for(my $i=0;$i<$#devices;$i++){ my $name=$devices[$i]->name; print "Name: $name\n"; my $result=$devices[$i]->set_mode('GDK_MODE_SCREEN'); print "Activation: $result\n"; my $mode=$devices[$i]->mode; print "Mode: $mode\n"; } -- View this message in context: http://gtk.10911.n7.nabble.com/segfault-using-extension-events-in-Gtk2-s-scribble-pl-tp85892p85897.html Sent from the Gtk+ - Perl mailing list archive at Nabble.com. _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list