Permalink
Browse files

Fix window exposition

Change-Id: I0339cbef7bed6ab1ba62f84f464879bba96402bf
  • Loading branch information...
1 parent 70fedce commit 8e543a2f0e36682ec34d97e9879ed17fd2eff4a9 @tomasz-wiszkowski committed Jan 15, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/elements/xfcon_window.py
@@ -48,6 +48,7 @@ def __init__(self):
self.set_keep_above(True)
self.set_urgency_hint(True)
self.set_resizable(False)
+ self.set_position(gtk.WIN_POS_NONE)
self.add_accel_group(XfConKeyBinder.create())
self.notebook = XfConNotebook()
@@ -219,9 +220,9 @@ def __on_accel_show_hide(self, *args):
self.__expose_animation_callback)
self.expose_animation.start()
else:
+ self.show()
self.__config_set_window_size()
self.expose_step = 1.0
- self.show()
else:
if self.settings.get_window_animations():
self.expose_animation = \
@@ -235,15 +236,15 @@ def __on_accel_show_hide(self, *args):
return True
def __expose_animation_callback(self, value, progress):
- self.expose_step = value
- rect = self.__calculate_window_size()
- rect.y -= int((1.0 - value) * rect.height)
-
- self.__set_window_size(rect)
if value == 0.0:
self.hide()
elif not self.get_visible():
self.show()
+ self.expose_step = value
+ rect = self.__calculate_window_size()
+ rect.y -= int((1.0 - value) * rect.height)
+ self.__set_window_size(rect)
+
def __on_accel_quit(self, *args):
wants_quit = XfConDialog.question_yes_no(
@@ -298,7 +299,6 @@ def show(self):
# be nice to expose panels later
# http://stackoverflow.com/questions/502282
self.show_all()
- self.__config_set_window_size()
self.restore_focus()
def hide(self):

0 comments on commit 8e543a2

Please sign in to comment.