diff options
| author | Drew DeVault <[email protected]> | 2015-08-16 16:12:40 -0400 | 
|---|---|---|
| committer | Drew DeVault <[email protected]> | 2015-08-16 16:12:40 -0400 | 
| commit | 75144318367dddd110f97c5693b2d543b7564f15 (patch) | |
| tree | 166c5cb63e7d673dd17c108b8291cfe2debf6a50 | |
| parent | 787849042595a564cfc185b95023db69be18ed48 (diff) | |
Fix pointer events properly
| -rw-r--r-- | sway/handlers.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index d843f44b..32b0051d 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -199,10 +199,10 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier  static bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct wlc_origin *origin) {  	mouse_origin = *origin;  	if (!config->focus_follows_mouse) { -		return true; +		return false;  	}  	focus_pointer(); -	return true; +	return false;  }  static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers, @@ -210,9 +210,9 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w  	swayc_t *focused = get_focused_container(&root_container);  	if (state == WLC_BUTTON_STATE_PRESSED) {  		swayc_t *pointer = focus_pointer(); -		return !(pointer && pointer != focused); +		return (pointer && pointer != focused);  	} -	return true; +	return false;  }  static void handle_wlc_ready(void) {  | 
