|
|
|
@ -653,6 +653,9 @@ class Interface(object):
|
|
|
|
|
def _window_to_tray(self, statusicon, user_data=None): |
|
|
|
|
"""Minimize/display main window (as in minimize to tray.)""" |
|
|
|
|
if self._main_window.get_property('visible'): |
|
|
|
|
(x, y) = self._main_window.get_position() |
|
|
|
|
(width, height) = self._main_window.get_size() |
|
|
|
|
|
|
|
|
|
self._options[self.NAMESPACE]['position_x'] = x |
|
|
|
|
self._options[self.NAMESPACE]['position_y'] = y |
|
|
|
|
|
|
|
|
|