Skip to content

Commit b20b699

Browse files
committed
gui fixes for examples
1 parent a46fbc4 commit b20b699

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

LFSToolKit/examples/RunExamples.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,20 @@ bool doDbg(void *p,void* ud)
8383

8484
int main(int argc, char **argv)
8585
{
86-
XEvent event;
87-
int sy=0;
88-
std::vector<hitRect> hrs;
89-
bool useliveupdate=true;
86+
int sy=0;
87+
std::vector<hitRect> hrs;
88+
bool useliveupdate=true;
89+
windowInitStruct *win;
9090
dbg="";
9191

9292
apc=new LFSTK_applicationClass();
93-
apc->LFSTK_addWindow(NULL,BOXLABEL,"LFSTKExample");
9493

94+
win=apc->LFSTK_getDefaultWInit();
95+
win->windowName=BOXLABEL;
96+
win->windowType=win->app->appAtomsHashed.at(LFSTK_UtilityClass::LFSTK_hashFromKey("_NET_WM_WINDOW_TYPE_DIALOG"));
97+
win->level=ABOVEALL;
98+
apc->LFSTK_addWindow(win,BOXLABEL);
9599
wc=apc->mainWindow;
96-
wc->LFSTK_setWindowType(apc->appAtomsHashed.at(LFSTK_UtilityClass::LFSTK_hashFromKey("_NET_WM_WINDOW_TYPE_DIALOG")));
97100
wc->LFSTK_setDecorations(false,false,true,false);
98101

99102
//info

0 commit comments

Comments
 (0)