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.
This commit is contained in:
committed by
Jon Trulson
parent
8bafd85d9a
commit
5544a0fb39
@@ -1399,7 +1399,9 @@ extern void UnpostDTTextField(void) ;
|
||||
extern Boolean DTFileIsSelected(
|
||||
DesktopRec *desktopRec,
|
||||
FileViewData *fileViewData) ;
|
||||
extern void InitializeDesktopGrid( void ) ;
|
||||
extern void InitializeDesktopGrid(
|
||||
int displayWidth,
|
||||
int displayHeight) ;
|
||||
extern void RegisterInGrid(
|
||||
int width,
|
||||
int height,
|
||||
|
||||
Reference in New Issue
Block a user