Skip to content

Commit

Permalink
drb: don't use move actions from non-main thread
Browse files Browse the repository at this point in the history
GitHub: fix GH-161

Changing window geometry from non-main thread isn't accepted on macOS.

Reported by makicamel. Thanks!!!
  • Loading branch information
kou committed Aug 14, 2024
1 parent c7fd2de commit 2b2ce80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rabbit/front.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def self.#{name}(#{arg_str})
send_arguments = [name.to_s.dump, *arg_list].join(', ')
dirty_source = nil
dirty_source = "dirty!" if need_clear_cache
if (level & PublicLevel::CONTROL).zero?
if (level & (PublicLevel::MOVE | PublicLevel::CONTROL)).zero?
instance_eval(<<-EOS, __FILE__, __LINE__ + 1)
def self.#{name}(#{arg_str})
result = @canvas.__send__(#{send_arguments})
Expand Down

0 comments on commit 2b2ce80

Please sign in to comment.