* Popup problems with GTK
@ 2005-03-24 18:10 Stephan Stahl
2005-03-24 19:06 ` Jan D.
0 siblings, 1 reply; 6+ messages in thread
From: Stephan Stahl @ 2005-03-24 18:10 UTC (permalink / raw)
Hi.
Using a up-to-date cvs emacs, gtk toolkit and Gnome gives problems
with popups when the Gnome mouse option "Highlight the pointer when you
press Ctrl" is active.
emacs -Q
C-mouse-3 in any buffer and emacs hangs.
When i disable this Ctrl Highlighting or compile emacs without gtk the
popup does just work..
Stephan
--
Stephan Stahl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Popup problems with GTK
2005-03-24 18:10 Popup problems with GTK Stephan Stahl
@ 2005-03-24 19:06 ` Jan D.
2005-03-24 19:29 ` Stephan Stahl
0 siblings, 1 reply; 6+ messages in thread
From: Jan D. @ 2005-03-24 19:06 UTC (permalink / raw)
Cc: emacs-devel
Stephan Stahl wrote:
>Hi.
>
>Using a up-to-date cvs emacs, gtk toolkit and Gnome gives problems
>with popups when the Gnome mouse option "Highlight the pointer when you
>press Ctrl" is active.
>
>emacs -Q
>C-mouse-3 in any buffer and emacs hangs.
>
>
This must be one of the most annoying features I've seen, and poorly
implemented at that. I can't imagine any Emacs user wanting this, Every
Ctrl-press starts the animation, and there are a lot of ctrl-pressing
going on in Emacs. I've checked in a fix so that Emacs does not hang,
that is the best we can do sort of changing GTK. Other GTK apps don't
handle this option well either, Gedit does not show the popup menu on
Ctrl-button-3 when that option is activated (at least not the one in
Gnome 2.8).
>When i disable this Ctrl Highlighting or compile emacs without gtk the
>popup does just work..
>
Not entirely true, you do get this for Motif based applications:
Warning:
Name: popup_menu
Class: XmMenuShell
XtGrabKeyboard failed
The option grabs the ctrl key and when GTK can't get that grab, it
silently refuses to pop up the menu.
Jan D.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Popup problems with GTK
2005-03-24 19:06 ` Jan D.
@ 2005-03-24 19:29 ` Stephan Stahl
2005-03-24 20:31 ` Stephan Stahl
0 siblings, 1 reply; 6+ messages in thread
From: Stephan Stahl @ 2005-03-24 19:29 UTC (permalink / raw)
Cc: Stephan Stahl, emacs-devel
Hi Jan.
Jan D. said:
> This must be one of the most annoying features I've seen, and poorly
> implemented at that. I can't imagine any Emacs user wanting this, Every
> Ctrl-press starts the animation, and there are a lot of ctrl-pressing
> going on in Emacs. I've checked in a fix so that Emacs does not hang,
It's not that bad. The animation does start on Ctrl-release and only when
no other key was pressed between Ctrl-press and Ctrl-release.. Try Ctrl-down,
shift-down,up and Ctrl-up -> no animation. (Gnome 2.8)
>>When i disable this Ctrl Highlighting or compile emacs without gtk the
>>popup does just work..
>
> Not entirely true, you do get this for Motif based applications:
[..]
> The option grabs the ctrl key and when GTK can't get that grab, it
> silently refuses to pop up the menu.
Oh, you are right. I just tried to omit the --with-gtk part and without
this the popup's toplevel entries work for me. Choosing a buffer after
C-mouse-1 did work, some submenu ala C-mouse-3 did not work. Strange
thing.. I'll try your patch and report back..
Thanks,
Stephan
--
Stephan Stahl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Popup problems with GTK
2005-03-24 19:29 ` Stephan Stahl
@ 2005-03-24 20:31 ` Stephan Stahl
2005-03-24 22:15 ` Jan D.
0 siblings, 1 reply; 6+ messages in thread
From: Stephan Stahl @ 2005-03-24 20:31 UTC (permalink / raw)
Cc: emacs-devel
Hi Jan.
Stephan Stahl said:
> thing.. I'll try your patch and report back..
This is very strange..
emacs -Q
C-mouse-3 does nothing but "<C-mouse-3> is undefined" is shown in the
echo area.
C-h k C-mouse-3 DOES show the usual/right screen.
When i disable "Ctrl Highlighting" both do the right thing.
Sorry your patch does not work.
Stephan
--
Stephan Stahl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Popup problems with GTK
2005-03-24 20:31 ` Stephan Stahl
@ 2005-03-24 22:15 ` Jan D.
2005-03-24 22:28 ` Stephan Stahl
0 siblings, 1 reply; 6+ messages in thread
From: Jan D. @ 2005-03-24 22:15 UTC (permalink / raw)
Cc: emacs-devel
> This is very strange..
>
> emacs -Q
> C-mouse-3 does nothing but "<C-mouse-3> is undefined" is shown in the
> echo area.
> C-h k C-mouse-3 DOES show the usual/right screen.
>
> When i disable "Ctrl Highlighting" both do the right thing.
> Sorry your patch does not work.
My patch only makes Emacs not hang. Emacs can not make it "work"
without modifying either GTK or Gnome. The Ctrl highlightning is
simply badly done.
Normally the menu is popped up with C-mouse-3-down and then popped down
on C-mouse-3 (which is actually never seen as a lisp event since the
menu grabs the mouse). But now C-mouse-3-down popps it up, we see that
it does in fact does not pupup and forget the whole thing. Then
C-mouse-3 comes adn Emacs does nothing. If you wan't to use the Ctrl
highlights pointer option you can bind C-mouse-3 to ignore.
Jan D.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-03-24 22:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-24 18:10 Popup problems with GTK Stephan Stahl
2005-03-24 19:06 ` Jan D.
2005-03-24 19:29 ` Stephan Stahl
2005-03-24 20:31 ` Stephan Stahl
2005-03-24 22:15 ` Jan D.
2005-03-24 22:28 ` Stephan Stahl
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.