From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alain Cochard Newsgroups: gmane.emacs.help Subject: Re: problem with 'other-frame' with KDE "Focus Follows Mouse" window behavior Date: 18 Dec 2005 16:02:10 +0100 Organization: les newsgroups par Wanadoo Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134918806 28625 80.91.229.2 (18 Dec 2005 15:13:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Dec 2005 15:13:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 18 16:13:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eo0Cj-0002El-IF for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Dec 2005 16:12:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eo08F-0000BH-Kd for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Dec 2005 10:07:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!colt.net!fr.colt.net!rain.fr!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Lines: 97 Original-NNTP-Posting-Date: 18 Dec 2005 16:00:21 CET Original-NNTP-Posting-Host: 82.126.155.232 Original-X-Trace: 1134918021 news.wanadoo.fr 19692 82.126.155.232:48851 Original-X-Complaints-To: abuse@wanadoo.fr Original-Xref: shelby.stanford.edu gnu.emacs.help:136415 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32034 Archived-At: Katsumi Yamaoka writes: > >>>>> In Alain Cochard wrote: > > > (II A) Case where the frames overlap by the top right corner of the > > bottom one and the bottom left corner of the top one: > > > -------- > > |a | > > | | > > ------ | > > |b | | > > | |----- > > ------ > > > I start with the mouse out of either frame, frame (a) in front (i.e., > > frame (b) partly hidden by (a) -- unlike on the "picture" above), and > > focus on (b). On the 1st 'M-x other-frame', the curse goes to frame > > (a), frame (b) staying behind. > > It seems to be just the same case as mine. Doesn't it solve by > the following? > > (if (and (not (featurep 'xemacs)) > window-system) > (defadvice raise-frame (after make-it-work (&optional frame) activate) > "Make it work." > (call-process > "wmctrl" nil nil nil "-i" "-R" > (frame-parameter (or frame (selected-frame)) 'outer-window-id)))) > > Where "wmctrl" is the external command which you can get from: > > http://sweb.cz/tripie/utils/wmctrl/ > > Note that you have to install the "wmctrl" command before > putting the advice into the ~/.emacs file. > >>>>> In Alain Cochard wrote: > > > (II A) Case where the frames overlap by the top right corner of the > > bottom one and the bottom left corner of the top one: > > > -------- > > |a | > > | | > > ------ | > > |b | | > > | |----- > > ------ > > > I start with the mouse out of either frame, frame (a) in front (i.e., > > frame (b) partly hidden by (a) -- unlike on the "picture" above), and > > focus on (b). On the 1st 'M-x other-frame', the curse goes to frame > > (a), frame (b) staying behind. > > It seems to be just the same case as mine. Doesn't it solve by > the following? > > (if (and (not (featurep 'xemacs)) > window-system) > (defadvice raise-frame (after make-it-work (&optional frame) activate) > "Make it work." > (call-process > "wmctrl" nil nil nil "-i" "-R" > (frame-parameter (or frame (selected-frame)) 'outer-window-id)))) > > Where "wmctrl" is the external command which you can get from: > > http://sweb.cz/tripie/utils/wmctrl/ > > Note that you have to install the "wmctrl" command before > putting the advice into the ~/.emacs file. Yes, I did that and it worked. I had some trouble installing wmctrl, though. The 'configure' stage reported: checking for X... no and then the 'make' failed. As Yamaoka-san said he was on Fedora Core 4, just like me, I found this strange. At some point I thought that installing some KDE development tools (which I hadn't installed) could solve the problem. I tried to install them with the KDE 'Add/Remove Applications (Package Management)' menu. It failed because something was not found, which I did not understand. I then tried to install some optional package 'kdevelop' (don't know what it is) from the command line: yum install kdevelop Then the system installed other packages on which kdevelop depends, and so on. After it was finished, wmctrl compiled fine, so I inserted the small lisp lines above and it solved the 'M-x other frame' problem. Thanks a lot. a.