From 9e1bd120e97de089eaef6902acfe94d9edc8fc93 Mon Sep 17 00:00:00 2001 From: K D Hedger Date: Thu, 23 May 2024 11:17:47 +0100 Subject: [PATCH] ... --- LFSWM2/LFSWM2/src/clientClass.cpp | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/LFSWM2/LFSWM2/src/clientClass.cpp b/LFSWM2/LFSWM2/src/clientClass.cpp index ea6a374..4d6bcf5 100644 --- a/LFSWM2/LFSWM2/src/clientClass.cpp +++ b/LFSWM2/LFSWM2/src/clientClass.cpp @@ -991,6 +991,7 @@ bool LFSWM2_clientClass::LFSWM2_doFrameMoveEvents(XEvent *e) case MotionNotify: { LFSWM2_clientClass *rcc; + bool donemove=false; //fprintf(stderr,"MotionNotify clientClass.cpp\n"); if(lastxmainClass->LFSWM2_setCurrentDesktop(this->onDesk,true,true); this->mainClass->mainWindowClass->LFSWM2_setProp(this->contentWindow,this->mainClass->atomshashed.at(LFSTK_UtilityClass::LFSTK_hashFromKey("_NET_WM_DESKTOP")),XA_CARDINAL,32,&this->onDesk,1); XWarpPointer(this->mainClass->display,None,None,0,0,0,0,this->mainClass->displayWidth-50,0); -// XSync(this->mainClass->display,true); -// this->mainClass->mainEventClass->LFSWM2_restack(); -// LFSWM2_clientClass *rcc; -// for(long unsigned j=0;jmainClass->mainWindowClass->windowIDList.size();j++) -// { -// rcc=this->mainClass->mainWindowClass->LFSWM2_getClientClass(this->mainClass->mainWindowClass->windowIDList.at(j)); -// if(rcc!=NULL) -// this->mainClass->mainWindowClass->LFSWM2_refreshFrame(rcc,NULL); -// } - + donemove=true; } else if((ee.xbutton.x_root>this->mainClass->displayWidth-20) && (direction==1)) { @@ -1028,15 +1020,18 @@ bool LFSWM2_clientClass::LFSWM2_doFrameMoveEvents(XEvent *e) this->mainClass->LFSWM2_setCurrentDesktop(this->onDesk,true,true); this->mainClass->mainWindowClass->LFSWM2_setProp(this->contentWindow,this->mainClass->atomshashed.at(LFSTK_UtilityClass::LFSTK_hashFromKey("_NET_WM_DESKTOP")),XA_CARDINAL,32,&this->onDesk,1); XWarpPointer(this->mainClass->display,None,None,0,0,0,0,(-(this->mainClass->displayWidth)+50),0); + donemove=true; } - - XSync(this->mainClass->display,true); - this->mainClass->mainEventClass->LFSWM2_restack(); - for(long unsigned j=0;jmainClass->mainWindowClass->windowIDList.size();j++) + if(donemove==true) { - rcc=this->mainClass->mainWindowClass->LFSWM2_getClientClass(this->mainClass->mainWindowClass->windowIDList.at(j)); - if(rcc!=NULL) - this->mainClass->mainWindowClass->LFSWM2_refreshFrame(rcc,NULL); + XSync(this->mainClass->display,true); + this->mainClass->mainEventClass->LFSWM2_restack(); + for(long unsigned j=0;jmainClass->mainWindowClass->windowIDList.size();j++) + { + rcc=this->mainClass->mainWindowClass->LFSWM2_getClientClass(this->mainClass->mainWindowClass->windowIDList.at(j)); + if(rcc!=NULL) + this->mainClass->mainWindowClass->LFSWM2_refreshFrame(rcc,NULL); + } } } lastx=ee.xbutton.x_root;