mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	rootston xcursor fixes
This commit is contained in:
		
							parent
							
								
									eb4e91f96d
								
							
						
					
					
						commit
						b275d44bc3
					
				
					 2 changed files with 8 additions and 13 deletions
				
			
		| 
						 | 
					@ -6,7 +6,6 @@
 | 
				
			||||||
#include <wlr/types/wlr_output_layout.h>
 | 
					#include <wlr/types/wlr_output_layout.h>
 | 
				
			||||||
#include <wlr/types/wlr_compositor.h>
 | 
					#include <wlr/types/wlr_compositor.h>
 | 
				
			||||||
#include <wlr/types/wlr_wl_shell.h>
 | 
					#include <wlr/types/wlr_wl_shell.h>
 | 
				
			||||||
#include <wlr/types/wlr_xcursor_manager.h>
 | 
					 | 
				
			||||||
#include <wlr/types/wlr_xdg_shell_v6.h>
 | 
					#include <wlr/types/wlr_xdg_shell_v6.h>
 | 
				
			||||||
#include <wlr/render/matrix.h>
 | 
					#include <wlr/render/matrix.h>
 | 
				
			||||||
#include <wlr/util/log.h>
 | 
					#include <wlr/util/log.h>
 | 
				
			||||||
| 
						 | 
					@ -324,12 +323,6 @@ void output_add_notify(struct wl_listener *listener, void *data) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct roots_seat *seat;
 | 
						struct roots_seat *seat;
 | 
				
			||||||
	wl_list_for_each(seat, &input->seats, link) {
 | 
						wl_list_for_each(seat, &input->seats, link) {
 | 
				
			||||||
		if (wlr_xcursor_manager_load(seat->cursor->xcursor_manager,
 | 
					 | 
				
			||||||
				wlr_output->scale)) {
 | 
					 | 
				
			||||||
			wlr_log(L_ERROR, "Cannot load xcursor theme for output '%s' "
 | 
					 | 
				
			||||||
				"with scale %d", wlr_output->name, wlr_output->scale);
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		roots_seat_configure_cursor(seat);
 | 
							roots_seat_configure_cursor(seat);
 | 
				
			||||||
		roots_seat_configure_xcursor(seat);
 | 
							roots_seat_configure_xcursor(seat);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -444,6 +444,7 @@ void roots_seat_configure_xcursor(struct roots_seat *seat) {
 | 
				
			||||||
		cursor_theme = cc->theme;
 | 
							cursor_theme = cc->theme;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!seat->cursor->xcursor_manager) {
 | 
				
			||||||
		seat->cursor->xcursor_manager =
 | 
							seat->cursor->xcursor_manager =
 | 
				
			||||||
			wlr_xcursor_manager_create(cursor_theme, ROOTS_XCURSOR_SIZE);
 | 
								wlr_xcursor_manager_create(cursor_theme, ROOTS_XCURSOR_SIZE);
 | 
				
			||||||
		if (seat->cursor->xcursor_manager == NULL) {
 | 
							if (seat->cursor->xcursor_manager == NULL) {
 | 
				
			||||||
| 
						 | 
					@ -451,6 +452,7 @@ void roots_seat_configure_xcursor(struct roots_seat *seat) {
 | 
				
			||||||
					cursor_theme);
 | 
										cursor_theme);
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct roots_output *output;
 | 
						struct roots_output *output;
 | 
				
			||||||
	wl_list_for_each(output, &seat->input->server->desktop->outputs, link) {
 | 
						wl_list_for_each(output, &seat->input->server->desktop->outputs, link) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue