help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs into focus


From: Richard G Riley
Subject: Re: Emacs into focus
Date: Thu, 07 Aug 2008 16:33:27 +0200
User-agent: Emacs 22.2.1/No Gnus v0.11

"Andrea Vettorello" <andrea.vettorello@gmail.com> writes:

> On Thu, Aug 7, 2008 at 7:36 AM, Richard G Riley <rileyrgdev@gmail.com> wrote:
>>
>> Can someone recommend the best way to have emacs come to the foreground
>> on a Linux desktop? I'm trying to get emacsclient wired up properly so I
>> can handle mailto URLS from iceweasel (firefox) properly. I have tried:
>>
>> ,----
>> | /usr/bin/emacsclient -e "(progn (raise-frame)(message-mail (substring 
>> \"$1\" 7) \"Subject\"  '((\"from\"  \"Richard 
>> Riley<rileyrgdev@gmail.com>\"))))"
>> `----
>>
>> But raise-frame does not seem to work on my Gnome desktop.
>>
>> Replacing raise-frame with (bring-on-top)
>>
>> where
>>
>> ,----
>> | (defun bring-on-top()
>> |   (interactive)
>> |    (x-send-client-message
>> |     nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_FULLSCREEN" 1))
>> | )
>> `----
>>
>> Does work but removes the WM border from the emacs frame.
>
> This won't help you a lot, but removing window decorations (and fill
> screen) is the expected behaviour of _NET_WM_STATE_FULLSCREEN (
> http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2551694
> ).
>
> Metacity, the default Gnome window manager, tries to "avoid focus
> stealing" (I think this blog post explains its behaviour:
> http://blogs.gnome.org/metacity/2007/12/24/stacking/ ), IIRC there
> should be a gconf setting to tweak it but I'm not completely sure as I
> don't use it...

The thing is that other email clients come to the fg just
fine via the mailto click. I'll dig around some more and maybe ask in
the gtk+ irc channel.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]