[arch-commits] Commit in atom/trunk (PKGBUILD fix-middle-click.patch)

Nicola Squartini tensor5 at archlinux.org
Sun Dec 30 13:49:42 UTC 2018


    Date: Sunday, December 30, 2018 @ 13:49:41
  Author: tensor5
Revision: 419232

upgpkg: atom 1.33.1-2

Added:
  atom/trunk/fix-middle-click.patch
Modified:
  atom/trunk/PKGBUILD

------------------------+
 PKGBUILD               |    9 ++++++++-
 fix-middle-click.patch |   21 +++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-30 13:49:15 UTC (rev 419231)
+++ PKGBUILD	2018-12-30 13:49:41 UTC (rev 419232)
@@ -2,7 +2,7 @@
 
 pkgname=atom
 pkgver=1.33.1
-pkgrel=1
+pkgrel=2
 pkgdesc='A hackable text editor for the 21st Century'
 arch=('x86_64')
 url='https://github.com/atom/atom'
@@ -19,6 +19,7 @@
         'electron-3.patch'
         'fix-atom-sh.patch'
         'fix-license-path.patch'
+        'fix-middle-click.patch'
         'fix-restart.patch'
         'symbols-view-use-system-ctags.patch'
         'use-system-apm.patch'
@@ -29,6 +30,7 @@
             '328da3b30f4e20e56b38e588d9fe871c01bbbe69865a79e9586919564bdfa869'
             'ab9eed3d4c8bfefea256953428379ab1e636b9c7d4c4af30ddc3f485330183c2'
             'c8a931f36af3722c57c4d1b70c1e58aa1a18372e8e26c28a4e01253e05295205'
+            '142d540259296396f6d528ecf2f7c6a363f89f8a0d2ad66497f8392da06202bc'
             'cbac8d28e32a32760cd6b16d313e05e32af57bfdea1c248636e1b1ae74e4e92c'
             '3c68e6b3751313e1d386e721f8f819fb051351fb2cf8e753b1d773a0f475fef8'
             '53f43c9328a66e24b3467a0a06d9dfde83475f7e54251bf7a523beafaa043806'
@@ -69,6 +71,11 @@
   rm -r git
   cd ../..
 
+  # https://bugs.archlinux.org/task/61047
+  cd node_modules/tabs
+  patch -Np1 -i "${srcdir}"/fix-middle-click.patch
+  cd ../..
+
   cd script
   npm install
   ./build

Added: fix-middle-click.patch
===================================================================
--- fix-middle-click.patch	                        (rev 0)
+++ fix-middle-click.patch	2018-12-30 13:49:41 UTC (rev 419232)
@@ -0,0 +1,21 @@
+From 82e767bfafcc882f3c3811bb9eb008b8f7c2c731 Mon Sep 17 00:00:00 2001
+From: Mario Pilz <mario at pilz-at.net>
+Date: Fri, 21 Dec 2018 03:48:36 +0100
+Subject: [PATCH] Fix tab close on middle click for Electron 3
+
+---
+ lib/tab-bar-view.coffee | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/tab-bar-view.coffee b/lib/tab-bar-view.coffee
+index 93e958e..2b91ad6 100644
+--- a/lib/tab-bar-view.coffee
++++ b/lib/tab-bar-view.coffee
+@@ -87,6 +87,7 @@ class TabBarView
+ 
+     @element.addEventListener "mousedown", @onMouseDown.bind(this)
+     @element.addEventListener "click", @onClick.bind(this)
++    @element.addEventListener "auxclick", @onClick.bind(this)
+     @element.addEventListener "dblclick", @onDoubleClick.bind(this)
+ 
+     @onDropOnOtherWindow = @onDropOnOtherWindow.bind(this)



More information about the arch-commits mailing list