forked from quickshell/quickshell
		
	core/window: fix windows not taking screen assignments during reload
This commit is contained in:
		
							parent
							
								
									48156a55b3
								
							
						
					
					
						commit
						41803ee235
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -73,6 +73,13 @@ void ProxyWindowBase::setupWindow() {
 | 
			
		|||
	QObject::connect(this, &ProxyWindowBase::heightChanged, this, &ProxyWindowBase::onMaskChanged);
 | 
			
		||||
	// clang-format on
 | 
			
		||||
 | 
			
		||||
	if (this->window->screen() != this->mScreen) {
 | 
			
		||||
		auto reshow = this->window->isVisible();
 | 
			
		||||
		if (reshow) 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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue