From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Detecting current monitor. Date: Mon, 07 Jan 2019 13:21:21 +0100 Message-ID: <87h8ek4q0u.fsf@telefonica.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546863598 14800 195.159.176.226 (7 Jan 2019 12:19:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 12:19:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 13:19:54 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggTsm-0003jJ-Tg for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2019 13:19:53 +0100 Original-Received: from localhost ([127.0.0.1]:58657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggTut-0003AM-Ou for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2019 07:22:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggTuS-0003A2-KU for help-gnu-emacs@gnu.org; Mon, 07 Jan 2019 07:21:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggTuR-0003T5-Ve for help-gnu-emacs@gnu.org; Mon, 07 Jan 2019 07:21:36 -0500 Original-Received: from [195.159.176.226] (port=47733 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggTuR-0003K9-IQ for help-gnu-emacs@gnu.org; Mon, 07 Jan 2019 07:21:35 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ggTsE-00035y-9x for help-gnu-emacs@gnu.org; Mon, 07 Jan 2019 13:19:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:suWfXvJjlSksHUVASwjHpdnP2Uc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119089 Archived-At: jiaming yuan writes: > Hi all, > > I am using Ubuntu 18.04 and have two monitors. I notice that some other GTK > applications like gnome-terminal can detect which monitor my mouse pointer is > currently in when launching, and launch to that monitor when I press the > corresponding gnome-shell hotkey. Can I achieve the same effect with Emacs? My guess is that it is a window manager feature. Emacs starts where the window manager tells it to start. On KDE, by default Emacs (and all other applications, unless configured otherwise on KDE settings) starts on the screen that has the focus.