wmadd 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wmadd/version.rb +1 -1
  3. data/lib/wmadd.rb +6 -3
  4. metadata +8 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a73fa8a64430a104b2cc8f9066d76620cab7dc2603a5c9964212bf0aeb985cf
4
- data.tar.gz: 28aee3e1711a5cc00eb0b58600af3db84ea26de58bc8477802a4e459900f139e
3
+ metadata.gz: b2eff95c86cff84f89d674ab32a50bc3ba72983f1819e53308d60f446c09f6fc
4
+ data.tar.gz: d9f9702ef318b442bc1da8767fc5e16b686a0354325e3ba7048bb8ac127276d2
5
5
  SHA512:
6
- metadata.gz: 35ab6c3e8e2921ca8c9915a5ee37a540eff41c361c2b83fae9f880d81fc1dd8de5c7740d4bd8b7b867ea649a1f96f993344e9159ee402ab09a6473e649678d39
7
- data.tar.gz: bea0e07de920f77b0be5fa7e05610a96b46b460207f04aa04345128be7b2366645e9212ae37d80323638e5f80cbb21d517d567c2726689ec4c35b2aae0c0c661
6
+ metadata.gz: 10eaaf97de42cb9f653bbd8fc25e5dd3d358075c325079d74dd44ef3fd5befe1b636f4ccfe30f405d0a60fcd072a567ce298b28f416901ab911b3a52ceeb81b4
7
+ data.tar.gz: 9303ef823bda4114d8448cf1a9db017345921069b5e762ce2a53b37328618ed0fe553065913468d7e17973076d217c50bd535dbdaab702c3b3d489ce69442a65
data/lib/wmadd/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Wmadd
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/wmadd.rb CHANGED
@@ -38,8 +38,11 @@ class Wmadd
38
38
  ev = @display.next_event
39
39
  case ev
40
40
  when X::CreateWindowEvent
41
- window_list.each do |w|
42
- watch_resize_event(w)
41
+ @watch_resize_job&.cancel
42
+ @watch_resize_job = @timer.set(0.1) do
43
+ window_list.each do |w|
44
+ watch_resize_event(w)
45
+ end
43
46
  end
44
47
  when X::ExposeEvent
45
48
  display_osd if ev.window == @osd.id
@@ -93,7 +96,7 @@ class Wmadd
93
96
 
94
97
  def top_window(win)
95
98
  top = win
96
- while top.parent.id != @root.id
99
+ while top.parent && top.parent.id != @root.id
97
100
  top = top.parent
98
101
  end
99
102
  top
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wmadd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TOMITA Masahiro
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 2024-10-06 00:00:00.000000000 Z
11
+ date: 2024-12-22 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: tmtms_timer
@@ -23,7 +24,7 @@ dependencies:
23
24
  - - ">="
24
25
  - !ruby/object:Gem::Version
25
26
  version: '0'
26
- description: show window geometry
27
+ description: show window geometry & make window transparent
27
28
  email:
28
29
  - tommy@tmtm.org
29
30
  executables:
@@ -47,6 +48,7 @@ metadata:
47
48
  homepage_uri: https://gitlab.com/tmtms/wmadd
48
49
  source_code_uri: https://gitlab.com/tmtms/wmadd
49
50
  rubygems_mfa_required: 'true'
51
+ post_install_message:
50
52
  rdoc_options: []
51
53
  require_paths:
52
54
  - lib
@@ -61,7 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
63
  - !ruby/object:Gem::Version
62
64
  version: '0'
63
65
  requirements: []
64
- rubygems_version: 3.6.0.dev
66
+ rubygems_version: 3.5.22
67
+ signing_key:
65
68
  specification_version: 4
66
- summary: show window geometry
69
+ summary: show window geometry & make window transparent
67
70
  test_files: []