unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#51703: 29.0.50; [PATCH] Fix default target of motion events
  2021-11-09  6:50 ` bug#51703: 29.0.50; [PATCH] Fix default target of motion events Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-11-09  7:24   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-11-09  7:24 UTC (permalink / raw)
  To: Po Lu; +Cc: 51703

Po Lu <luangruo@yahoo.com> writes:

> Thanks.
>

Thanks; pushed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-09  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87czn9akls.fsf.ref@yahoo.com>
2021-11-09  6:50 ` bug#51703: 29.0.50; [PATCH] Fix default target of motion events Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09  7:24   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).