mirror of
				https://github.com/kbumsik/VirtScreen.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	QML: Show window always on the right
This commit is contained in:
		
							parent
							
								
									66fcf5f173
								
							
						
					
					
						commit
						1576ffee49
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								main.qml
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								main.qml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -320,7 +320,7 @@ ApplicationWindow {
 | 
			
		|||
            var height = backend.primaryDisplayHeight;
 | 
			
		||||
            var x_mid = width / 2;
 | 
			
		||||
            var y_mid = height / 2;
 | 
			
		||||
            window.x = (backend.cursor_x > x_mid)? width - window.width : 0;
 | 
			
		||||
            window.x = width - window.width; //(backend.cursor_x > x_mid)? width - window.width : 0;
 | 
			
		||||
            window.y = (backend.cursor_y > y_mid)? height - window.height : 0;
 | 
			
		||||
            window.show();
 | 
			
		||||
            window.raise();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue