Fixes several issues with grid registration of the dtwm panel on dtfile startup and...
authorEugene Doudine <dudinea@gmail.com>
Tue, 15 Apr 2014 14:25:49 +0000 (17:25 +0300)
committerJon Trulson <jon@radscan.com>
Sun, 20 Apr 2014 00:57:57 +0000 (18:57 -0600)
commit5544a0fb396f93c2b460c3df139ebb71868fd967
treeb3f4eec3571471fa92b96aee3c5f883a7032b84d
parent8bafd85d9a9daa9426d8ba3dc6a6a3f4ca16afd6
Fixes several issues with grid registration of the dtwm panel on dtfile startup and on workspace addition:

  The panel registration code rather stupidly assumed that display
  size is always 1280x1024 pixels. Because of this, depending on screen
  size, the panel could be registered somewhere in the center of the screen
  or completely or partially beyond of it.

  The panels were registered only on startup, not  those, which were added
  from UI.

The fix moves panel registration into separate routine and removes assumption
about display size. The fix yet is not complete since it still makes assumption
about panel's geometry: from dtfile there is still no way to find out
dinamically  the size of panel and it's location.
cde/programs/dtfile/Desktop.c
cde/programs/dtfile/Main.c
cde/programs/dtfile/Main.h