Go to file
Mika Bostrom bf2eaa772c Fix window visibility
This fixes the FPDB main window visibility with window managers that use
workspaces instead of virtual desktop(s). On such a system the
application receives WINDOW_STATE_ICONIFIED event when the workspace is
switched. This hides the window.

It wouldn't be too big a problem if the window wouldn't occasionally get
stuck in a "hide-me-loop", where any attempt to unhide/present the
window again triggers the hide routine. The two state events, _ICONIFIED
and _WITHDRAWN are not the same or even mutually exclusive. As such the
old event mask test simply did not cover all the possibilities.

Also, the property 'visible' does not necessarily match reality. It can
be set to true for iconified windows, and false to a visible window. So
a better solution is to not rely on the property, but just track the
wanted visibility state in our own code.

After this simple refactoring, the application window finally seems to
behave properly. [Also, widget.present() automatically calls .show(), so
we can kill one redundant operation.]
2010-08-21 14:24:34 +03:00
files Update debian packaging for new snapshot 2010-07-02 12:32:05 +03:00
gfx Add windows icon file. 2010-02-07 12:36:41 -05:00
packaging Merge branch 'mika' 2010-08-18 04:22:59 +02:00
pyfpdb Fix window visibility 2010-08-21 14:24:34 +03:00
regression-test change calls to python2 back to python 2010-07-08 20:01:03 +02:00
utils change calls to python2 back to python 2010-07-08 20:01:03 +02:00
agpl-3.0.txt removed outdated documentation and moved license files 2010-06-22 11:14:29 +08:00
fdl-1.2.txt removed outdated documentation and moved license files 2010-06-22 11:14:29 +08:00
gpl-2.0.txt some cleanups: 2010-07-05 12:17:08 +08:00
gpl-3.0.txt some cleanups: 2010-07-05 12:17:08 +08:00
Makefile Give Makefile a 'release' target 2010-07-07 12:48:13 +08:00
mit.txt add MIT license and notice 2010-08-02 11:53:02 +02:00
readme.txt Added a minimal readme 2010-06-28 11:48:54 +08:00
run_fpdb.bat put output file from .exe startup in higher directory 2010-06-06 09:29:46 +01:00
run_fpdb.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
setup.py Merge branch 'master' of git://git.assembla.com/fpdb 2010-07-22 08:44:13 +03:00
test_Python_Libs.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
test_Python.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00

Please visit http://fpdb.sourceforge.net for documentation, tips and help.