GoogleCodeArchives / hotot

Automatically exported from code.google.com/p/hotot
0 stars 0 forks source link

托盘右键菜单的Resume/Hide项无法实现隐藏 #359

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.在hotot窗口显示并拥有焦点的时候,右键点击托盘图标,选�
��Resume/Hide项
2.
3.

What is the expected output? What do you see instead?
窗口仍然保持显示,并没有隐藏

What version of the product are you using? On what operating system and
what Desktop Environment?
hotot 1:0.9.6~hg783-0ubuntu0ppa1~natty1
fvwm 2.7.0
trayer 1.0-5

Please provide any additional information below.

hotot.py中,负责Resume/Hide的是

def _on_trayicon_activate(self, icon):
  if self.window.is_active():
    self.window.hide()
  else:
    self.window.present()

实际观察到的现象是,即使hotot窗口持有焦点,但点击trayer中
的托盘图标时,焦点已经发生了转移,self.window.is_active()一定
返回False。不知道在其他WM和/或托盘程序中有无此问题

目前我是改成self.window.get_visible()

Original issue reported on code.google.com by xnrefor...@gmail.com on 6 May 2011 at 12:42

GoogleCodeExporter commented 9 years ago
这个bug有同学汇报过。都是在gnome下有的时候能重现,有时又
不能

Original comment by 5h3l...@gmail.com on 31 May 2011 at 1:23

GoogleCodeExporter commented 9 years ago
在fvwm+trayer环境中还观察到了其他的现象

当hotot窗口没有处在最前时,左键按住托盘图标不放,hotot被�
��升到最前但没有获得焦点,等待一段时间(约3秒)后再放��
�左键也不会得到焦点

但快速点击/等待时间较短(如2秒)就可以得到焦点

同样不知道其他WM和/或托盘程序下有没有这个现象

Original comment by xnrefor...@gmail.com on 31 May 2011 at 1:58

GoogleCodeExporter commented 9 years ago

Original comment by 5h3l...@gmail.com on 7 Oct 2011 at 12:28