Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/xmonad/files/
Date: Thu, 20 Aug 2020 06:38:00
Message-Id: 1597905474.be39bb5a578867782266ae3cfb6cc604d3458fa9.slyfox@gentoo
1 commit: be39bb5a578867782266ae3cfb6cc604d3458fa9
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 19 17:39:09 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 20 06:37:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be39bb5a
7
8 x11-wm/xmonad: remove unused patches
9
10 Package-Manager: Portage-3.0.2, Repoman-2.3.23
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/17173
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 x11-wm/xmonad/files/xmonad-0.11-ghc-7.10.patch | 14 ----
16 x11-wm/xmonad/files/xmonad-0.11-sample.patch | 74 ----------------------
17 x11-wm/xmonad/files/xmonad-0.12-check-repeat.patch | 40 ------------
18 x11-wm/xmonad/files/xmonad-check-repeat.patch | 40 ------------
19 4 files changed, 168 deletions(-)
20
21 diff --git a/x11-wm/xmonad/files/xmonad-0.11-ghc-7.10.patch b/x11-wm/xmonad/files/xmonad-0.11-ghc-7.10.patch
22 deleted file mode 100644
23 index e92a31ec704..00000000000
24 --- a/x11-wm/xmonad/files/xmonad-0.11-ghc-7.10.patch
25 +++ /dev/null
26 @@ -1,14 +0,0 @@
27 -Fri May 2 06:57:43 BST 2014 Adam Vogt <vogt.adam@×××××.com>
28 - * derive Applicative instance for Query
29 -diff -rN -u old-xmonad/XMonad/Core.hs new-xmonad/XMonad/Core.hs
30 ---- old-xmonad/XMonad/Core.hs 2015-01-08 21:40:45.320979242 +0000
31 -+++ new-xmonad/XMonad/Core.hs 2015-01-08 21:40:45.367979193 +0000
32 -@@ -155,7 +155,7 @@
33 -
34 - type ManageHook = Query (Endo WindowSet)
35 - newtype Query a = Query (ReaderT Window X a)
36 -- deriving (Functor, Monad, MonadReader Window, MonadIO)
37 -+ deriving (Functor, Applicative, Monad, MonadReader Window, MonadIO)
38 -
39 - runQuery :: Query a -> Window -> X a
40 - runQuery (Query m) w = runReaderT m w
41
42 diff --git a/x11-wm/xmonad/files/xmonad-0.11-sample.patch b/x11-wm/xmonad/files/xmonad-0.11-sample.patch
43 deleted file mode 100644
44 index 0780af8c18d..00000000000
45 --- a/x11-wm/xmonad/files/xmonad-0.11-sample.patch
46 +++ /dev/null
47 @@ -1,74 +0,0 @@
48 -Sun Jan 6 17:42:54 GMT 2013 Daniel Wagner <daniel@×××××××××××.com>
49 - * define the "help" string in the sample configuration bundled with xmonad
50 -diff -rN -u old-xmonad/man/xmonad.hs new-xmonad/man/xmonad.hs
51 ---- old-xmonad/man/xmonad.hs 2015-02-27 08:38:26.993365307 +0000
52 -+++ new-xmonad/man/xmonad.hs 2015-02-27 08:38:27.046365303 +0000
53 -@@ -280,3 +280,54 @@
54 - logHook = myLogHook,
55 - startupHook = myStartupHook
56 - }
57 -+
58 -+-- | Finally, a copy of the default bindings in simple textual tabular format.
59 -+help :: String
60 -+help = unlines ["The default modifier key is 'alt'. Default keybindings:",
61 -+ "",
62 -+ "-- launching and killing programs",
63 -+ "mod-Shift-Enter Launch xterminal",
64 -+ "mod-p Launch dmenu",
65 -+ "mod-Shift-p Launch gmrun",
66 -+ "mod-Shift-c Close/kill the focused window",
67 -+ "mod-Space Rotate through the available layout algorithms",
68 -+ "mod-Shift-Space Reset the layouts on the current workSpace to default",
69 -+ "mod-n Resize/refresh viewed windows to the correct size",
70 -+ "",
71 -+ "-- move focus up or down the window stack",
72 -+ "mod-Tab Move focus to the next window",
73 -+ "mod-Shift-Tab Move focus to the previous window",
74 -+ "mod-j Move focus to the next window",
75 -+ "mod-k Move focus to the previous window",
76 -+ "mod-m Move focus to the master window",
77 -+ "",
78 -+ "-- modifying the window order",
79 -+ "mod-Return Swap the focused window and the master window",
80 -+ "mod-Shift-j Swap the focused window with the next window",
81 -+ "mod-Shift-k Swap the focused window with the previous window",
82 -+ "",
83 -+ "-- resizing the master/slave ratio",
84 -+ "mod-h Shrink the master area",
85 -+ "mod-l Expand the master area",
86 -+ "",
87 -+ "-- floating layer support",
88 -+ "mod-t Push window back into tiling; unfloat and re-tile it",
89 -+ "",
90 -+ "-- increase or decrease number of windows in the master area",
91 -+ "mod-comma (mod-,) Increment the number of windows in the master area",
92 -+ "mod-period (mod-.) Deincrement the number of windows in the master area",
93 -+ "",
94 -+ "-- quit, or restart",
95 -+ "mod-Shift-q Quit xmonad",
96 -+ "mod-q Restart xmonad",
97 -+ "mod-[1..9] Switch to workSpace N",
98 -+ "",
99 -+ "-- Workspaces & screens",
100 -+ "mod-Shift-[1..9] Move client to workspace N",
101 -+ "mod-{w,e,r} Switch to physical/Xinerama screens 1, 2, or 3",
102 -+ "mod-Shift-{w,e,r} Move client to screen 1, 2, or 3",
103 -+ "",
104 -+ "-- Mouse bindings: default actions bound to mouse events",
105 -+ "mod-button1 Set the window to floating mode and move by dragging",
106 -+ "mod-button2 Raise the window to the top of the stack",
107 -+ "mod-button3 Set the window to floating mode and resize by dragging"]
108 -Sun Jan 6 17:44:14 GMT 2013 Daniel Wagner <daniel@×××××××××××.com>
109 - * use "modm" instead of "modMask" in the sample config
110 -diff -rN -u old-xmonad/man/xmonad.hs new-xmonad/man/xmonad.hs
111 ---- old-xmonad/man/xmonad.hs 2015-02-27 08:39:59.280358012 +0000
112 -+++ new-xmonad/man/xmonad.hs 2015-02-27 08:39:59.333358007 +0000
113 -@@ -129,7 +129,7 @@
114 - , ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart")
115 -
116 - -- Run xmessage with a summary of the default keybindings (useful for beginners)
117 -- , ((modMask .|. shiftMask, xK_slash ), spawn ("echo \"" ++ help ++ "\" | xmessage -file -"))
118 -+ , ((modm .|. shiftMask, xK_slash ), spawn ("echo \"" ++ help ++ "\" | xmessage -file -"))
119 - ]
120 - ++
121 -
122
123 diff --git a/x11-wm/xmonad/files/xmonad-0.12-check-repeat.patch b/x11-wm/xmonad/files/xmonad-0.12-check-repeat.patch
124 deleted file mode 100644
125 index 79bd2c2d21f..00000000000
126 --- a/x11-wm/xmonad/files/xmonad-0.12-check-repeat.patch
127 +++ /dev/null
128 @@ -1,40 +0,0 @@
129 ---- xmonad/src/XMonad/Core.hs 2010-09-05 05:11:42.000000000 +0400
130 -+++ xmonad/src/XMonad/Core.hs 2010-09-18 07:59:14.000000000 +0400
131 -@@ -65,6 +65,7 @@
132 - , waitingUnmap :: !(M.Map Window Int) -- ^ the number of expected UnmapEvents
133 - , dragging :: !(Maybe (Position -> Position -> X (), X ()))
134 - , numberlockMask :: !KeyMask -- ^ The numlock modifier
135 -+ , keyPressed :: !KeyCode -- ^ keycode of the key being pressed if any
136 - , extensibleState :: !(M.Map String (Either String StateExtension))
137 - -- ^ stores custom state information.
138 - --
139 ---- xmonad/src/XMonad/Main.hs 2010-09-05 05:11:42.000000000 +0400
140 -+++ xmonad/src/XMonad/Main.hs 2010-09-18 08:03:11.000000000 +0400
141 -@@ -129,6 +129,7 @@
142 - , mapped = S.empty
143 - , waitingUnmap = M.empty
144 - , dragging = Nothing
145 -+ , keyPressed = 0
146 - , extensibleState = extState
147 - }
148 - allocaXEvent $ \e ->
149 -@@ -190,10 +191,15 @@
150 - -- run window manager command
151 - handle (KeyEvent {ev_event_type = t, ev_state = m, ev_keycode = code})
152 - | t == keyPress = withDisplay $ \dpy -> do
153 -- s <- io $ keycodeToKeysym dpy code 0
154 -- mClean <- cleanMask m
155 -- ks <- asks keyActions
156 -- userCodeDef () $ whenJust (M.lookup (mClean, s) ks) id
157 -+ kp <- gets keyPressed
158 -+ if kp /= code then do
159 -+ modify $ \s -> s { keyPressed = code }
160 -+ s <- io $ keycodeToKeysym dpy code 0
161 -+ mClean <- cleanMask m
162 -+ ks <- asks keyActions
163 -+ userCodeDef () $ whenJust (M.lookup (mClean, s) ks) id
164 -+ else return ()
165 -+ | t == keyRelease = modify $ \s -> s { keyPressed = 0 }
166 -
167 - -- manage a new window
168 - handle (MapRequestEvent {ev_window = w}) = withDisplay $ \dpy -> do
169
170 diff --git a/x11-wm/xmonad/files/xmonad-check-repeat.patch b/x11-wm/xmonad/files/xmonad-check-repeat.patch
171 deleted file mode 100644
172 index 9b30cb5ece3..00000000000
173 --- a/x11-wm/xmonad/files/xmonad-check-repeat.patch
174 +++ /dev/null
175 @@ -1,40 +0,0 @@
176 ---- xmonad//XMonad/Core.hs 2010-09-05 05:11:42.000000000 +0400
177 -+++ xmonad//XMonad/Core.hs 2010-09-18 07:59:14.000000000 +0400
178 -@@ -65,6 +65,7 @@
179 - , waitingUnmap :: !(M.Map Window Int) -- ^ the number of expected UnmapEvents
180 - , dragging :: !(Maybe (Position -> Position -> X (), X ()))
181 - , numberlockMask :: !KeyMask -- ^ The numlock modifier
182 -+ , keyPressed :: !KeyCode -- ^ keycode of the key being pressed if any
183 - , extensibleState :: !(M.Map String (Either String StateExtension))
184 - -- ^ stores custom state information.
185 - --
186 ---- xmonad//XMonad/Main.hsc 2010-09-05 05:11:42.000000000 +0400
187 -+++ xmonad//XMonad/Main.hsc 2010-09-18 08:03:11.000000000 +0400
188 -@@ -129,6 +129,7 @@
189 - , mapped = S.empty
190 - , waitingUnmap = M.empty
191 - , dragging = Nothing
192 -+ , keyPressed = 0
193 - , extensibleState = extState
194 - }
195 - allocaXEvent $ \e ->
196 -@@ -190,10 +191,15 @@
197 - -- run window manager command
198 - handle (KeyEvent {ev_event_type = t, ev_state = m, ev_keycode = code})
199 - | t == keyPress = withDisplay $ \dpy -> do
200 -- s <- io $ keycodeToKeysym dpy code 0
201 -- mClean <- cleanMask m
202 -- ks <- asks keyActions
203 -- userCodeDef () $ whenJust (M.lookup (mClean, s) ks) id
204 -+ kp <- gets keyPressed
205 -+ if kp /= code then do
206 -+ modify $ \s -> s { keyPressed = code }
207 -+ s <- io $ keycodeToKeysym dpy code 0
208 -+ mClean <- cleanMask m
209 -+ ks <- asks keyActions
210 -+ userCodeDef () $ whenJust (M.lookup (mClean, s) ks) id
211 -+ else return ()
212 -+ | t == keyRelease = modify $ \s -> s { keyPressed = 0 }
213 -
214 - -- manage a new window
215 - handle (MapRequestEvent {ev_window = w}) = withDisplay $ \dpy -> do