Previously, the intent was likely to position the receiver window near the status icon. It did so by calling move followed by present. According to the Gtk documentation, move() may fail if the window is hidden before. Therefore present the window *after* determining the position, but *before* moving it. (presenting the window before getting the position gives a Gtk warning and has unpredictable behavior wrt. the window position). As window positioning is now enabled, add additional logic to prevent overlap of windows: position the first window near the status icon and others on the left. This is not idea, e.g. when the status icon is on the left side of the screen, but the idea of positioning windows near to each other is broken anyway. |
||
---|---|---|
.. | ||
__init__.py | ||
about.py | ||
action.py | ||
config_panel.py | ||
icons.py | ||
indicate.py | ||
main_window.py | ||
notify.py | ||
pair_window.py | ||
status_icon.py |