all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: handa@m17n.org, emacs-devel@gnu.org
Subject: Re: raise-frame doesn't work in Fedora Core 4
Date: Thu, 02 Nov 2006 08:30:29 +0100	[thread overview]
Message-ID: <45499E95.1080403@swipnet.se> (raw)
In-Reply-To: <E1GfUPY-0006Jp-UL@fencepost.gnu.org>



Richard Stallman skrev:
>     It figures out the current desktop (i.e. if you have more than one 
>     workspace/desktop) by inspecting the property _NET_WM_DESKTOP or 
>     _WIN_WORKSPACE on the root window.  It then switches the window to the current 
>     desktop by sending a client message _NET_CURRENT_DESKTOP.  Finally it 
>     activates the window by sending the client message _NET_ACTIVE_WINDOW.
> 
> What part of this is really right to do, here?

I think sending the _NET_ACTIVE_WINDOW is correct here according to the new 
specification.

> Is it right to move the window to the current desktop?

It depends on how we want raise-frame to behave.  Do we want Emacs to switch 
the frame to the current desktop or not?  To not switch is the current 
implementation so if we want to change I suggest next release.

> It seems strange to me that raise-frame would do that.
> 
> Would it be hard to code this in C?

No, it is simple.  It is actually doable from lisp also (with an X11 enabled 
Emacs).  The lisp drag-and-drop code for example sends client messages all the 
time.

> 
>     > Does this use of wmctrl work correctly with other window managers?
> 
>     It works with window managers that understand and comply with the newest 
>     freedesktop Window Manager Specification 
>     (http://freedesktop.org/wiki/Standards_2fwm_2dspec), i.e. Metacity (Gnome), 
>     KWin (KDE), xfwm4 (xfce) and other newer window managers.  There is a list on 
>     the web page.  Certainly not with older VM:s like twm and mwm.
> 
> What happens if you do this (via wmctrl or directly) and you're using
> an older wm?  Does it do any harm?

No, it becomes a noop.  The client message gets sent to the root window but 
since nobody (i.e. the window manager) isn't listening for it, nothing more 
happens.

	Jan D.

  reply	other threads:[~2006-11-02  7:30 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-31 11:12 raise-frame doesn't work in Fedora Core 4 Kenichi Handa
2006-10-31 11:57 ` Katsumi Yamaoka
2006-10-31 12:24   ` Jan Djärv
2006-10-31 15:37   ` Stefan Monnier
2006-10-31 17:19     ` Jan D.
2006-10-31 19:01       ` Stefan Monnier
2006-11-01  7:08         ` Jan Djärv
2006-11-01 23:15         ` Chong Yidong
2006-11-01 23:21           ` David Kastrup
2006-11-02 16:48             ` Stefan Monnier
2006-11-02 21:47             ` Richard Stallman
2006-11-01  3:50     ` Masatake YAMATO
2006-11-01  4:51       ` Katsumi Yamaoka
2006-11-01  2:14   ` Richard Stallman
2006-11-01  7:28     ` Jan Djärv
2006-11-01 16:43     ` Stefan Monnier
2006-11-02  4:43       ` Richard Stallman
2006-11-02  7:56         ` Jan Djärv
2006-11-02 16:45           ` Stefan Monnier
2006-11-03  7:54             ` Jan D.
2006-11-03  8:55           ` Jan D.
2006-11-03  8:59   ` Jan D.
2006-11-09 10:27     ` Katsumi Yamaoka
2006-11-01  2:14 ` Richard Stallman
2006-11-01  7:24   ` Jan Djärv
2006-11-02  4:42     ` Richard Stallman
2006-11-02  7:30       ` Jan Djärv [this message]
2006-11-02  8:23         ` David Kastrup
2006-11-03  7:07         ` Richard Stallman
2006-11-02 17:46 ` Chip Coldwell
2006-11-02 19:25   ` Chip Coldwell
     [not found] <b9yoe9xece4.fsf@jpl.org>
2005-06-27 23:41 ` raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...) Katsumi Yamaoka
2005-06-28 15:48   ` raise-frame doesn't work in Fedora Core 4 Johan Bockgård
2007-09-14  6:24   ` Katsumi Yamaoka
2007-09-16 10:25     ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45499E95.1080403@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.