mirror of
https://github.com/KeithDHedger/LFSDesktopProject.git
synced 2026-01-13 05:42:05 +00:00
Fixed dock spuriously reappearing after iconizing
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user