Fixed dock spuriously reappearing after iconizing

This commit is contained in:
K D Hedger
2024-12-17 11:10:30 +00:00
parent 48114ab0d0
commit fb6cfb4487
7 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,5 @@
0.2.1
Fixed dock spuriously reappearing after iconizing.
Adjusted dock window context menu position.
Added context menu to main dock window.
Added "Iconize Dock" to launcher context window.

View File

@ -88,6 +88,9 @@ bool gadgetDrop(void *lwc,propertyStruct *data,void* ud)
bool timerCB(LFSTK_applicationClass *p,void* ud)
{
// if(dockIsHidden==false)
// return(true);
readMsg();
if(clockButton!=NULL)
@ -246,6 +249,7 @@ bool hideCB(void* p,void* ud)
if(bc!=NULL)
{
iconWindow->LFSTK_hideWindow();
dockIsHidden=false;
if(useTaskBar==true)
{
oldwidth=0;

View File

@ -62,6 +62,7 @@ LFSTK_windowClass *dockWindow=NULL;
LFSTK_windowClass *dockBGWindow=NULL;
LFSTK_windowClass *iconWindow=NULL;
int holdpsize;
bool dockIsHidden=false;
LFSTK_windowClass *popActionWindow=NULL;
LFSTK_listGadgetClass *popActionList=NULL;

View File

@ -116,8 +116,7 @@ extern LFSTK_windowClass *dockWindow;
extern LFSTK_windowClass *dockBGWindow;
extern LFSTK_windowClass *iconWindow;
extern int holdpsize;
extern bool dockIsHidden;
extern LFSTK_windowClass *mainContextWindow;

View File

@ -72,6 +72,7 @@ bool launcherContextCB(void *p,void* ud)
break;
case BUTTONHIDE:
resizeDock(1,1);
dockIsHidden=true;
iconWindow->LFSTK_showWindow();
iconWindow->LFSTK_clearWindow(true);
if(calWindow!=NULL)

View File

@ -63,6 +63,7 @@ bool contextCB(void *p,void* ud)
break;
case CONTEXTBUTTONHIDE:
resizeDock(1,1);
dockIsHidden=true;
iconWindow->LFSTK_showWindow();
iconWindow->LFSTK_clearWindow(true);
if(calWindow!=NULL)

View File

@ -238,6 +238,9 @@ void updateTaskBar(bool force)//TODO//
bool goodkey;
bool unequal=false;
if(dockIsHidden==true)
return;
tasks.clear();
doTreeWalkForTasks(apc->rootWindow);
std::sort(tasks.begin(),tasks.end(),compareTaskClass);