Skip to content

Commit

Permalink
Standalone compositor 1. #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaelpark committed Jan 30, 2021
1 parent a931c93 commit 8e9252a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,11 +1236,12 @@ sint Default::HandleEvent(bool forcePoll){
if(pclient1){
pclient1->UpdateTranslation(&std::get<1>(*mrect));

//handle stacking order
if(standaloneComp){
auto m1 = std::find_if(clientStack.begin(),clientStack.end(),[&](auto &p)->bool{
return static_cast<X11Client *>(p)->window == pev->window;
});
if(pev->above_sibling != XCB_NONE){
if(pev->above_sibling != 0){
auto ma = std::find_if(clientStack.begin(),clientStack.end(),[&](auto &p)->bool{
return static_cast<X11Client *>(p)->window == pev->above_sibling;
});
Expand Down Expand Up @@ -1674,7 +1675,8 @@ sint Default::HandleEvent(bool forcePoll){
if(!pclient11 || pclient11->flags & X11Client::FLAG_UNMAPPING)
break;

pfocusInClient = pclient11;
if(standaloneComp)
pfocusInClient = pclient11;
}
break;
case XCB_ENTER_NOTIFY:{
Expand Down

0 comments on commit 8e9252a

Please sign in to comment.