1 |
/* |
/* |
2 |
* Copyright (C) 2006-2017 Andreas Persson |
* Copyright (C) 2006-2019 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
674 |
# if GTKMM_MAJOR_VERSION < 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION < 20) |
# if GTKMM_MAJOR_VERSION < 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION < 20) |
675 |
Glib::wrap(event->device, true)->ungrab(event->time); |
Glib::wrap(event->device, true)->ungrab(event->time); |
676 |
# else |
# else |
677 |
gdk_device_ungrab(Glib::wrap(event->device, true)->gobj(), event->time); |
Glib::wrap(event->device, true)->get_seat()->ungrab(); |
678 |
# endif |
# endif |
679 |
#endif |
#endif |
680 |
resize.active = false; |
resize.active = false; |
690 |
# if GTKMM_MAJOR_VERSION < 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION < 20) |
# if GTKMM_MAJOR_VERSION < 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION < 20) |
691 |
Glib::wrap(event->device, true)->ungrab(event->time); |
Glib::wrap(event->device, true)->ungrab(event->time); |
692 |
# else |
# else |
693 |
gdk_device_ungrab(Glib::wrap(event->device, true)->gobj(), event->time); |
Glib::wrap(event->device, true)->get_seat()->ungrab(); |
694 |
# endif |
# endif |
695 |
#endif |
#endif |
696 |
move.active = false; |
move.active = false; |
814 |
Gdk::Cursor::create(Gdk::SB_H_DOUBLE_ARROW), |
Gdk::Cursor::create(Gdk::SB_H_DOUBLE_ARROW), |
815 |
event->time); |
event->time); |
816 |
# else |
# else |
817 |
gdk_device_grab( |
Glib::wrap(event->device, true)->get_seat()->grab( |
818 |
Glib::wrap(event->device, true)->gobj(), |
get_window(), |
819 |
get_window()->gobj(), |
Gdk::SeatCapabilities::SEAT_CAPABILITY_ALL_POINTING, |
|
GDK_OWNERSHIP_NONE, |
|
820 |
false, |
false, |
|
GdkEventMask(GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | |
|
|
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON1_MOTION_MASK), |
|
821 |
Gdk::Cursor::create( |
Gdk::Cursor::create( |
822 |
Glib::wrap(event->device, true)->get_seat()->get_display(), |
Glib::wrap(event->device, true)->get_seat()->get_display(), |
823 |
Gdk::SB_H_DOUBLE_ARROW |
Gdk::SB_H_DOUBLE_ARROW |
824 |
)->gobj(), |
), |
825 |
event->time |
reinterpret_cast<GdkEvent*>(event) |
826 |
); |
); |
827 |
# endif |
# endif |
828 |
#endif |
#endif |
853 |
Gdk::Cursor::create(Gdk::FLEUR), |
Gdk::Cursor::create(Gdk::FLEUR), |
854 |
event->time); |
event->time); |
855 |
# else |
# else |
856 |
gdk_device_grab( |
Glib::wrap(event->device, true)->get_seat()->grab( |
857 |
Glib::wrap(event->device, true)->gobj(), |
get_window(), |
858 |
get_window()->gobj(), |
Gdk::SeatCapabilities::SEAT_CAPABILITY_ALL_POINTING, |
|
GDK_OWNERSHIP_NONE, |
|
859 |
false, |
false, |
|
GdkEventMask(GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | |
|
|
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON1_MOTION_MASK), |
|
860 |
Gdk::Cursor::create( |
Gdk::Cursor::create( |
861 |
Glib::wrap(event->device, true)->get_seat()->get_display(), |
Glib::wrap(event->device, true)->get_seat()->get_display(), |
862 |
Gdk::FLEUR |
Gdk::FLEUR |
863 |
)->gobj(), |
), |
864 |
event->time |
reinterpret_cast<GdkEvent*>(event) |
865 |
); |
); |
866 |
# endif |
# endif |
867 |
#endif |
#endif |