Solaar/lib/solaar
Peter Wu dded8504e6 Fix window positioning of main windows
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.
2013-05-05 11:18:29 +02:00
..
ui Fix window positioning of main windows 2013-05-05 11:18:29 +02:00
__init__.py split the about window into its own module 2013-05-04 12:01:28 +02:00
appinstance.py move the code for single-instance check into its own file 2013-04-28 14:06:41 +02:00
cli.py minor clean-ups 2013-05-04 17:19:48 +02:00
gtk.py better error dialog on receiver permission error; fixes #17 2013-05-05 10:35:03 +02:00
listener.py create and destroy windows on demand 2013-05-04 12:20:51 +02:00