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 |
1022 |
# 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) |
1023 |
Glib::wrap(event->device, true)->ungrab(event->time); |
Glib::wrap(event->device, true)->ungrab(event->time); |
1024 |
# else |
# else |
1025 |
gdk_device_ungrab(Glib::wrap(event->device, true)->gobj(), event->time); |
Glib::wrap(event->device, true)->get_seat()->ungrab(); |
1026 |
# endif |
# endif |
1027 |
#endif |
#endif |
1028 |
resize.active = false; |
resize.active = false; |
1062 |
Gdk::Cursor::create(Gdk::SB_H_DOUBLE_ARROW), |
Gdk::Cursor::create(Gdk::SB_H_DOUBLE_ARROW), |
1063 |
event->time); |
event->time); |
1064 |
# else |
# else |
1065 |
gdk_device_grab( |
Glib::wrap(event->device, true)->get_seat()->grab( |
1066 |
Glib::wrap(event->device, true)->gobj(), |
get_window(), |
1067 |
get_window()->gobj(), |
Gdk::SeatCapabilities::SEAT_CAPABILITY_ALL_POINTING, |
|
GDK_OWNERSHIP_NONE, |
|
1068 |
false, |
false, |
|
GdkEventMask(GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | |
|
|
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON1_MOTION_MASK), |
|
1069 |
Gdk::Cursor::create( |
Gdk::Cursor::create( |
1070 |
Glib::wrap(event->device, true)->get_seat()->get_display(), |
Glib::wrap(event->device, true)->get_seat()->get_display(), |
1071 |
Gdk::SB_H_DOUBLE_ARROW |
Gdk::SB_H_DOUBLE_ARROW |
1072 |
)->gobj(), |
), |
1073 |
event->time |
reinterpret_cast<GdkEvent*>(event) |
1074 |
); |
); |
1075 |
# endif |
# endif |
1076 |
#endif |
#endif |