mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	src/keyboard.c: stored handled keys as bound when window-cycling
...and changing TTY
This commit is contained in:
		
							parent
							
								
									a363f73e02
								
							
						
					
					
						commit
						e1467b9aac
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -134,7 +134,8 @@ handle_compositor_keybindings(struct wl_listener *listener,
 | 
			
		|||
				 * Don't send any key events to clients when
 | 
			
		||||
				 * changing tty
 | 
			
		||||
				 */
 | 
			
		||||
				return true;
 | 
			
		||||
				handled = true;
 | 
			
		||||
				goto out;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			@ -147,7 +148,9 @@ handle_compositor_keybindings(struct wl_listener *listener,
 | 
			
		|||
					osd_preview_restore(server);
 | 
			
		||||
					/* osd_finish() additionally resets cycle_view to NULL */
 | 
			
		||||
					osd_finish(server);
 | 
			
		||||
					return true;
 | 
			
		||||
 | 
			
		||||
					handled = true;
 | 
			
		||||
					goto out;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -169,7 +172,8 @@ handle_compositor_keybindings(struct wl_listener *listener,
 | 
			
		|||
			}
 | 
			
		||||
		}
 | 
			
		||||
		/* don't send any key events to clients when osd onscreen */
 | 
			
		||||
		return true;
 | 
			
		||||
		handled = true;
 | 
			
		||||
		goto out;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Handle compositor key bindings */
 | 
			
		||||
| 
						 | 
				
			
			@ -179,6 +183,7 @@ handle_compositor_keybindings(struct wl_listener *listener,
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
out:
 | 
			
		||||
	if (handled) {
 | 
			
		||||
		key_state_store_pressed_keys_as_bound();
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue