forked from quickshell/quickshell
		
	core/popup: force window destruction to avoid crashes
This commit is contained in:
		
							parent
							
								
									c3fe93efe6
								
							
						
					
					
						commit
						439788fce0
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -24,6 +24,11 @@ void ProxyPopupWindow::completeWindow() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ProxyPopupWindow::postCompleteWindow() {}
 | 
					void ProxyPopupWindow::postCompleteWindow() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool ProxyPopupWindow::deleteOnInvisible() const {
 | 
				
			||||||
 | 
						// Currently crashes in normal mode, do not have the time to debug it now.
 | 
				
			||||||
 | 
						return true;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
qint32 ProxyPopupWindow::x() const {
 | 
					qint32 ProxyPopupWindow::x() const {
 | 
				
			||||||
	// QTBUG-121550
 | 
						// QTBUG-121550
 | 
				
			||||||
	auto basepos = this->mParentProxyWindow == nullptr ? 0 : this->mParentProxyWindow->x();
 | 
						auto basepos = this->mParentProxyWindow == nullptr ? 0 : this->mParentProxyWindow->x();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -64,6 +64,7 @@ public:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void completeWindow() override;
 | 
						void completeWindow() override;
 | 
				
			||||||
	void postCompleteWindow() override;
 | 
						void postCompleteWindow() override;
 | 
				
			||||||
 | 
						[[nodiscard]] bool deleteOnInvisible() const override;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void setScreen(QuickshellScreenInfo* screen) override;
 | 
						void setScreen(QuickshellScreenInfo* screen) override;
 | 
				
			||||||
	void setVisible(bool visible) override;
 | 
						void setVisible(bool visible) override;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue