Skip to content

Commit 57ad27c

Browse files
committed
fixed dock context window
1 parent fb6cfb4 commit 57ad27c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

LFSDock/LFSDock/src/callbacks.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,15 @@ void showhidetActionList(LFSTK_gadgetClass *bc,LFSTK_windowClass *winc,LFSTK_lis
145145
winc->LFSTK_showWindow(true);
146146
winc->LFSTK_setKeepAbove(true);
147147
winc->LFSTK_redrawAllGadgets();
148+
//dockWindow->ignoreContext=true;//TODO//
149+
dockWindow->LFSTK_setContextWindow(NULL);
148150
apc->windows->at(apc->LFSTK_findWindow(winc)).showing=true;
149151
}
150152
else
151153
{
152154
winc->LFSTK_hideWindow();
153155
apc->windows->at(apc->LFSTK_findWindow(winc)).showing=false;
156+
dockWindow->LFSTK_setContextWindow(mainContextWindow);
154157
}
155158
}
156159

LFSDock/LFSDock/src/globals.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ extern LFSTK_windowClass *iconWindow;
118118
extern int holdpsize;
119119
extern bool dockIsHidden;
120120

121-
extern LFSTK_windowClass *mainContextWindow;
122-
121+
extern LFSTK_windowClass *mainContextWindow;
123122
extern LFSTK_windowClass *popActionWindow;
124123
extern LFSTK_listGadgetClass *popActionList;
125124
extern bool inSomeWindow;

LFSToolKit/examples/window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int main(int argc, char **argv)
121121
}
122122
contextWindow->LFSTK_resizeWindow(GADGETWIDTH,sy,true);
123123
wc->LFSTK_setContextWindow(contextWindow);
124-
wc->contextWindowPos=CONTEXTBELOW;
124+
wc->contextWindowPos=CONTEXTATMOUSE;
125125
//wc->contextYOffset=-40;
126126
printf("Number of gadgets in window=%i\n",wc->LFSTK_gadgetCount());
127127
int retval=apc->LFSTK_runApp();

0 commit comments

Comments
 (0)