xlib-objects 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b1e65a5824201ce6773108aeb130a603a908f72
4
- data.tar.gz: 1cbf2a4b3cbd7536f9dd71608a5f0cc16300df10
3
+ metadata.gz: f116435cd0ad86aefb7b0aad6177876f170b48b8
4
+ data.tar.gz: 036010f306434fa996ed7572821d6510c66eb24f
5
5
  SHA512:
6
- metadata.gz: b98048ac8a11f1399fecf30a50ff33d168ade049faad21c3266f3d366418ba705b99792fdebb5b40ad4fee7e664da6e1d8ed6e6804db8e8d00e96e3a5c70a7fd
7
- data.tar.gz: 585913f1f3bd4d5bdc0dd1b9a3d5a054e9a76228eac378f3bb5d8b9eea40421dbb03e4f7e94d6e9b6686a773b9d3ce1974c733a2e7d379ae906ca4ce94890833
6
+ metadata.gz: e387f88d27913ab4b5fdc5128ce793aee26e8ea818aba6a7f261f224c130b2af1b05b9074dee4ded82c289aefec78ef139d99f6d918bb4525ed88aba691af1f8
7
+ data.tar.gz: fddee9385777c5c2214554183ef27b2aa3bc00a6b9438e818288df482a11e89d3a84a577d6f9924c856af0efa60387bb584bfa63079bb4be2f97a85daea3cca1
@@ -19,7 +19,7 @@ module XlibObj
19
19
  end
20
20
 
21
21
  def handle
22
- window_id = event || parent || window || owner || requestor
22
+ window_id = window || owner || requestor
23
23
  Window.new(@extension.display, window_id).handle(self)
24
24
  end
25
25
 
data/lib/window.rb CHANGED
@@ -214,10 +214,14 @@ module XlibObj
214
214
  end
215
215
 
216
216
  def destroy
217
- @event_handler.destroy
217
+ finalize
218
218
  Xlib.XDestroyWindow(@display.to_native, to_native)
219
219
  end
220
220
 
221
+ def finalize
222
+ @event_handler.destroy
223
+ end
224
+
221
225
  def inspect
222
226
  "#<#{self.class.name}:0x#{'%014x' % __id__} @id=#{id}>"
223
227
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlib-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Aue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xlib