@@ -740,7 +740,6 @@ static bool IsPenEvent(GdkEvent* aEvent, bool* isEraser) {
740
740
*isEraser = true ;
741
741
return true ;
742
742
} else {
743
-
744
743
#ifdef MOZ_X11
745
744
// Workaround : When using Xwayland, pens are reported as
746
745
// GDK_SOURCE_TOUCHSCREEN If eSource is GDK_SOURCE_TOUCHSCREEN and the
@@ -899,7 +898,7 @@ bool nsWindow::ToplevelUsesCSD() const {
899
898
#ifdef MOZ_WAYLAND
900
899
if (GdkIsWaylandDisplay ()) {
901
900
static auto sGdkWaylandDisplayPrefersSsd =
902
- (gboolean (*)(const GdkWaylandDisplay*))dlsym (
901
+ (gboolean (*)(const GdkWaylandDisplay*))dlsym (
903
902
RTLD_DEFAULT, " gdk_wayland_display_prefers_ssd" );
904
903
// NOTE(emilio): Not using GDK_WAYLAND_DISPLAY to avoid bug 1946088.
905
904
return !sGdkWaylandDisplayPrefersSsd ||
@@ -5082,7 +5081,7 @@ void nsWindow::OnScrollEvent(GdkEventScroll* aEvent) {
5082
5081
if (StaticPrefs::apz_gtk_pangesture_enabled () &&
5083
5082
gtk_check_version (3 , 20 , 0 ) == nullptr ) {
5084
5083
static auto sGdkEventIsScrollStopEvent =
5085
- (gboolean (*)(const GdkEvent*))dlsym (
5084
+ (gboolean (*)(const GdkEvent*))dlsym (
5086
5085
RTLD_DEFAULT, " gdk_event_is_scroll_stop_event" );
5087
5086
5088
5087
LOG (" [%d] pan smooth event dx=%f dy=%f inprogress=%d\n " , aEvent->time ,
@@ -7414,11 +7413,16 @@ MOZ_CAN_RUN_SCRIPT static void WaylandDragWorkaround(nsWindow* aWindow,
7414
7413
7415
7414
buttonPressCountWithDrag++;
7416
7415
if (buttonPressCountWithDrag > 1 ) {
7416
+ LOGDRAG (
7417
+ " WaylandDragWorkaround applied [buttonPressCountWithDrag %d], quit D&D "
7418
+ " session" ,
7419
+ buttonPressCountWithDrag);
7420
+
7417
7421
NS_WARNING (
7418
7422
" Quit unfinished Wayland Drag and Drop operation. Buggy Wayland "
7419
7423
" compositor?" );
7420
7424
buttonPressCountWithDrag = 0 ;
7421
- currentDragSession->EndDragSession (false , 0 );
7425
+ currentDragSession->EndDragSession (true , 0 );
7422
7426
}
7423
7427
}
7424
7428
0 commit comments