mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	WindowServer: Factor out compositing from WSWindowManager into WSCompositor.
This is far from finished and the two classes are awkwardly grabbing at each other's innards, but here's a first step in the right direction.
This commit is contained in:
		
							parent
							
								
									508007f1dd
								
							
						
					
					
						commit
						ad908f1395
					
				
					 11 changed files with 487 additions and 426 deletions
				
			
		|  | @ -1,11 +1,12 @@ | |||
| #include "WSScreen.h" | ||||
| #include "WSEventLoop.h" | ||||
| #include "WSCompositor.h" | ||||
| #include "WSEvent.h" | ||||
| #include "WSEventLoop.h" | ||||
| #include "WSScreen.h" | ||||
| #include "WSWindowManager.h" | ||||
| #include <unistd.h> | ||||
| #include <fcntl.h> | ||||
| #include <sys/ioctl.h> | ||||
| #include <sys/mman.h> | ||||
| #include <unistd.h> | ||||
| 
 | ||||
| static WSScreen* s_the; | ||||
| 
 | ||||
|  | @ -86,7 +87,7 @@ void WSScreen::on_receive_mouse_data(int dx, int dy, int dz, unsigned buttons) | |||
|     } | ||||
| 
 | ||||
|     if (m_cursor_location != prev_location) | ||||
|         WSWindowManager::the().invalidate_cursor(); | ||||
|         WSCompositor::the().invalidate_cursor(); | ||||
| } | ||||
| 
 | ||||
| void WSScreen::on_receive_keyboard_data(KeyEvent kernel_event) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling