forked from quickshell/quickshell
		
	core/window: fix white flash before window content is set
This commit is contained in:
		
							parent
							
								
									5731af562b
								
							
						
					
					
						commit
						300c0d97fb
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -74,13 +74,10 @@ void ProxyWindowBase::setupWindow() {
 | 
			
		|||
	// clang-format on
 | 
			
		||||
 | 
			
		||||
	if (this->window->screen() != this->mScreen) {
 | 
			
		||||
		auto reshow = this->window->isVisible();
 | 
			
		||||
		if (reshow) this->window->setVisible(false);
 | 
			
		||||
		if (this->window->isVisible()) this->window->setVisible(false);
 | 
			
		||||
		this->window->setScreen(this->mScreen);
 | 
			
		||||
		if (reshow) this->window->setVisible(true);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	this->window->setScreen(this->mScreen);
 | 
			
		||||
	this->setWidth(this->mWidth);
 | 
			
		||||
	this->setHeight(this->mHeight);
 | 
			
		||||
	this->setColor(this->mColor);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue