* bug#51703: 29.0.50; [PATCH] Fix default target of motion events
[not found] <87czn9akls.fsf.ref@yahoo.com>
@ 2021-11-09 6:50 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 7:24 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-11-09 6:50 UTC (permalink / raw)
To: 51703
[-- Attachment #1: Type: text/plain, Size: 9 bytes --]
Thanks.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-default-target-of-motion-events.patch --]
[-- Type: text/x-patch, Size: 824 bytes --]
From 45f7b15398ee817453e842a8c0fa9ed32c64d6ce Mon Sep 17 00:00:00 2001
From: Po Lu <luangruo@yahoo.com>
Date: Tue, 9 Nov 2021 14:49:14 +0800
Subject: [PATCH] Fix default target of motion events
* src/xwidget.c (xwidget_motion_or_crossing): Default to widget_osr
instead of its window.
---
src/xwidget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xwidget.c b/src/xwidget.c
index 90178f441d..d3a8d5eb82 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -763,7 +763,7 @@ xwidget_motion_or_crossing (struct xwidget_view *view, const XEvent *event)
&x, &y);
if (!target)
- target = model->widgetwindow_osr;
+ target = model->widget_osr;
xg_event->any.window = gtk_widget_get_window (target);
g_object_ref (xg_event->any.window); /* The window will be unrefed
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread