GNU bug report logs -
#59351
29.0.50; [PATCH] Fix mouse click position to menu bar entry
Previous Next
Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>
Date: Fri, 18 Nov 2022 08:38:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: 59351 <at> debbugs.gnu.org
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Date: Fri, 18 Nov 2022 13:10:07 +0100
>
> Po Lu <luangruo <at> yahoo.com> writes:
>
> >> + /* I guess this works because the menu bar is always
> >> + at position (0, 0) in a frame. Should this changed
> >> + and we need a way to calculate the correct position
> >> + into the menu bar from the position of the event in
> >> + the frame. */
> >
> > I think this comment is unnecessary. Where else would a menu bar be?
>
> I don't know. Maybe in some distant future, menu bar will be anywhere
> :-) It also helps with the previous comment about event position being
> relative to frame because here we are converting in f->menu_bar_window.
Why not use FRAME_TO_WINDOW_PIXEL_X and FRAME_TO_WINDOW_PIXEL_Y, and
make sure this will _always_ work?
This bug report was last modified 2 years and 250 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.