uh-layout 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/uh/layout/version.rb +1 -1
- data/lib/uh/layout.rb +5 -1
- data/spec/uh/layout_spec.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6b79e33e24afa90cb3ac6e5164d8a4603c18da5
|
4
|
+
data.tar.gz: d6ffed19ae70a74ea34b95e47c4b1ab1aec61435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61af32c594c778693f78bee48d76ab19183c0a30944f614ad158a15808f446211f16ee1b537de3fd418af79098d7730f9c7b7f14638941b591df87ba1253c37
|
7
|
+
data.tar.gz: ff18fa02b66dd28f38cac8072d8d6749accc54dc675b923cd55861dfc0ea564bf89c541cb8ad432d5e0394430430a4882f863fb6301b1914179de89eb110d0fd
|
data/.travis.yml
CHANGED
data/lib/uh/layout/version.rb
CHANGED
data/lib/uh/layout.rb
CHANGED
@@ -86,10 +86,14 @@ module Uh
|
|
86
86
|
update_widgets
|
87
87
|
end
|
88
88
|
|
89
|
-
def update
|
89
|
+
def update(client)
|
90
90
|
update_widgets unless client.hidden?
|
91
91
|
end
|
92
92
|
|
93
|
+
def expose(window)
|
94
|
+
update_widgets
|
95
|
+
end
|
96
|
+
|
93
97
|
def handle_screen_sel(direction)
|
94
98
|
screens.sel direction
|
95
99
|
current_client.focus if current_client
|
data/spec/uh/layout_spec.rb
CHANGED
@@ -148,6 +148,13 @@ module Uh
|
|
148
148
|
end
|
149
149
|
end
|
150
150
|
|
151
|
+
describe '#expose' do
|
152
|
+
it 'updates the widgets' do
|
153
|
+
expect(layout).to receive :update_widgets
|
154
|
+
layout.expose :window
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
151
158
|
describe '#handle_screen_sel' do
|
152
159
|
it 'selects consecutive screen in given direction' do
|
153
160
|
expect { layout.handle_screen_sel :succ }
|