From nobody Fri Feb 25 12:18:03 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8F13D19CFCE2; Fri, 25 Feb 2022 12:18:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K4phC3Zkrz3LPt; Fri, 25 Feb 2022 12:18:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645791483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vbA/V2jzg0/lZxTkWAycDC2xHWZnhxquXXgrtTVBiTA=; b=sHlxx4uPXIWhZi1TdjpH7UF5s5ZIym8DciYvP5rYW26y/HUucBTxGlyaSr/ketU4xSPtPE IDRnk8HYfNsd7MqBSOkEX3HJf3wRdbo2LNPpjDqxhQ68SK0UDWyvfq2x6ebOw1oHFVHQNY 5QIHHkjv0/BIyVWYggskt8iwZXshI79BUyYSKBTtNrSBsiL2mD/N+SZia/5Aw8LJfFOdZ2 7hgU0blVHaQ6iA3pnRTGFAyxY2nln8U8Xl5f7nRB6L+WP7aK0LOXV9G0X33s10yrTOu8LY 0cU6YfdvVjsPoD+rAO/1k/19i6pdTxEaBAVneEnsyTU2Lcj69e4i5lO7BYquaw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 575551F982; Fri, 25 Feb 2022 12:18:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21PCI3PJ010612; Fri, 25 Feb 2022 12:18:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21PCI3if010611; Fri, 25 Feb 2022 12:18:03 GMT (envelope-from git) Date: Fri, 25 Feb 2022 12:18:03 GMT Message-Id: <202202251218.21PCI3if010611@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Renato Botelho Subject: git: edcb5d3860b7 - main - x11/gmrun: Fix position on multihead List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: garga X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: edcb5d3860b77b8df6995a17cbdcee75bca5ae70 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645791483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vbA/V2jzg0/lZxTkWAycDC2xHWZnhxquXXgrtTVBiTA=; b=iVPPSTrGr9NDPpOgsh2XaKxopuH4ZfrkZtWA3qnaQkfuZBbBCbZyzHBOjf87XJB/56RWJP jYh3oC1X/NQK2wZTiyKQarGtiHbM8upmxiHK1/UXABQQdwmHo9cdq32fhTEhnN9V+JEt10 95N3yXfZ/j1eZX+7b8NyaFwkRnITS3wd+bx+HzJH1vj/wGG/D0HW/rnbzJ9jWHn+o1sPk4 f//X03qMLEse+JWHGRrQ7pnkBhgZmJl4U03iWBHE4FzYQ4VJWggd85d1WEJPIIf5iFD2AO Ty5JYIpTtKZ2d1P164z3wnaiA3SzszEY9byBJeJ+ahZUlFNlAqEks/mGFkDQWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645791483; a=rsa-sha256; cv=none; b=P6mmUnl0Y5J7Y06ifGfm592+HUXcetfZOAKQk2DFG3oyNJe8t/udJj+pRHXoCcoqu5NSaB TGBYKznXHImuja5WgC3nwwtzBplo8wluXHSVwrbC81443ZXjE2H3isPW8tyXzGAuLBXjOy TTFjMJ92hALQB01lZ82iurb19xhkd8Xjjn7XIvrthU3A2vLoJ52V7c2jw2SOIBNeFty4Z0 d9s/1fmCUvRhgDjadP1OutcJFVYLcUuHDVM8yPwlxUf402Q2N1X1iM+Df6HFKI9b6YNwv3 wUFwhr0fzkVG2MHQdXnIJkPoPpqKj7ckoBcGpxVM/2i0TLPvmUa36aGwcyowCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by garga: URL: https://cgit.FreeBSD.org/ports/commit/?id=edcb5d3860b77b8df6995a17cbdcee75bca5ae70 commit edcb5d3860b77b8df6995a17cbdcee75bca5ae70 Author: fgorter AuthorDate: 2022-02-25 11:52:56 +0000 Commit: Renato Botelho CommitDate: 2022-02-25 11:52:56 +0000 x11/gmrun: Fix position on multihead Add a patch to make gmrun to show on current desktop instead of a static place to help people using it on multihead environment. PR: 259115 Obtained from: https://aur.archlinux.org/cgit/aur.git/tree/center-and-multihead.patch?h=gmrun-multihead Sponsored by: Rubicon Communications, LLC ("Netgate") --- x11/gmrun/Makefile | 2 +- x11/gmrun/files/patch-config_gmrunrc | 12 ++++++++++++ x11/gmrun/files/patch-src_main.cc | 22 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/x11/gmrun/Makefile b/x11/gmrun/Makefile index 1f4fc7d2422b..e0573f4c466a 100644 --- a/x11/gmrun/Makefile +++ b/x11/gmrun/Makefile @@ -2,7 +2,7 @@ PORTNAME= gmrun PORTVERSION= 0.9.2 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= x11 MASTER_SITES= SF diff --git a/x11/gmrun/files/patch-config_gmrunrc b/x11/gmrun/files/patch-config_gmrunrc new file mode 100644 index 000000000000..fce12f75759a --- /dev/null +++ b/x11/gmrun/files/patch-config_gmrunrc @@ -0,0 +1,12 @@ +--- config/gmrunrc.orig 2003-11-16 10:43:41 UTC ++++ config/gmrunrc +@@ -7,7 +7,8 @@ Terminal = gnome-terminal --start-factory-server --use + TermExec = ${Terminal} -e + AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man + +-# Set window geometry (except height) ++# Set window geometry (except height). ++# Top / Left = -1: Center dialog box in the current screen. + Width = 400 + Top = 100 + Left = 200 diff --git a/x11/gmrun/files/patch-src_main.cc b/x11/gmrun/files/patch-src_main.cc new file mode 100644 index 000000000000..822c0d6061c3 --- /dev/null +++ b/x11/gmrun/files/patch-src_main.cc @@ -0,0 +1,22 @@ +--- src/main.cc.orig 2003-11-16 10:55:07 UTC ++++ src/main.cc +@@ -541,7 +541,6 @@ int main(int argc, char **argv) + gtk_widget_set_name(win, "Msh_Run_Window"); + gtk_window_set_title(GTK_WINDOW(win), "Execute program feat. completion"); + gtk_window_set_policy(GTK_WINDOW(win), FALSE, FALSE, TRUE); +- // gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER); + gtk_container_set_border_width(GTK_CONTAINER(win), 4); + gtk_signal_connect(GTK_OBJECT(win), "destroy", + GTK_SIGNAL_FUNC(gtk_main_quit), NULL); +@@ -653,7 +652,10 @@ int main(int argc, char **argv) + } + else + { +- gtk_widget_set_uposition(win, prefs_left, prefs_top); ++ if ((prefs_top == -1) && (prefs_left == -1)) ++ gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER); ++ else ++ gtk_widget_set_uposition(win, prefs_left, prefs_top); + } + + gtk_widget_show(win);