mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	
							parent
							
								
									ab8ab3dd86
								
							
						
					
					
						commit
						f2aa030aac
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
					@ -72,6 +72,9 @@ _osd_update(struct server *server)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct output *output;
 | 
						struct output *output;
 | 
				
			||||||
	wl_list_for_each(output, &server->outputs, link) {
 | 
						wl_list_for_each(output, &server->outputs, link) {
 | 
				
			||||||
 | 
							if (!output_is_usable(output)) {
 | 
				
			||||||
 | 
								continue;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		struct lab_data_buffer *buffer = buffer_create_cairo(width, height,
 | 
							struct lab_data_buffer *buffer = buffer_create_cairo(width, height,
 | 
				
			||||||
			output->wlr_output->scale, true);
 | 
								output->wlr_output->scale, true);
 | 
				
			||||||
		if (!buffer) {
 | 
							if (!buffer) {
 | 
				
			||||||
| 
						 | 
					@ -209,8 +212,10 @@ _osd_show(struct server *server)
 | 
				
			||||||
	_osd_update(server);
 | 
						_osd_update(server);
 | 
				
			||||||
	struct output *output;
 | 
						struct output *output;
 | 
				
			||||||
	wl_list_for_each(output, &server->outputs, link) {
 | 
						wl_list_for_each(output, &server->outputs, link) {
 | 
				
			||||||
 | 
							if (output_is_usable(output) && output->workspace_osd) {
 | 
				
			||||||
			wlr_scene_node_set_enabled(&output->workspace_osd->node, true);
 | 
								wlr_scene_node_set_enabled(&output->workspace_osd->node, true);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	struct wlr_keyboard *keyboard = &server->seat.keyboard_group->keyboard;
 | 
						struct wlr_keyboard *keyboard = &server->seat.keyboard_group->keyboard;
 | 
				
			||||||
	if (keyboard_any_modifiers_pressed(keyboard)) {
 | 
						if (keyboard_any_modifiers_pressed(keyboard)) {
 | 
				
			||||||
		/* Hidden by release of all modifiers */
 | 
							/* Hidden by release of all modifiers */
 | 
				
			||||||
| 
						 | 
					@ -286,6 +291,9 @@ workspaces_osd_hide(struct seat *seat)
 | 
				
			||||||
	struct output *output;
 | 
						struct output *output;
 | 
				
			||||||
	struct server *server = seat->server;
 | 
						struct server *server = seat->server;
 | 
				
			||||||
	wl_list_for_each(output, &server->outputs, link) {
 | 
						wl_list_for_each(output, &server->outputs, link) {
 | 
				
			||||||
 | 
							if (!output->workspace_osd) {
 | 
				
			||||||
 | 
								continue;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		wlr_scene_node_set_enabled(&output->workspace_osd->node, false);
 | 
							wlr_scene_node_set_enabled(&output->workspace_osd->node, false);
 | 
				
			||||||
		wlr_scene_buffer_set_buffer(output->workspace_osd, NULL);
 | 
							wlr_scene_buffer_set_buffer(output->workspace_osd, NULL);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue