diff options
| author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-09 22:27:51 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-08-27 23:09:46 -0600 | 
| commit | 54b546121b3221e02d31a2af0bb0ce859376ab93 (patch) | |
| tree | fd6cf1e61ae9713bc5236572354dc5b855db8270 /dwl.c | |
| parent | 43016bdad80fcd2efe557a43e8db2345ead9b5f4 (diff) | |
avoid using a else block
Diffstat (limited to '')
| -rw-r--r-- | dwl.c | 5 | 
1 files changed, 2 insertions, 3 deletions
| @@ -625,7 +625,7 @@ buttonpress(struct wl_listener *listener, void *data)  		break;  	case WL_POINTER_BUTTON_STATE_RELEASED:  		/* If you released any buttons, we exit interactive move/resize mode. */ -		/* TODO should reset to the pointer focus's current setcursor */ +		/* TODO: should reset to the pointer focus's current setcursor */  		if (!locked && cursor_mode != CurNormal && cursor_mode != CurPressed) {  			wlr_cursor_set_xcursor(cursor, cursor_mgr, "default");  			cursor_mode = CurNormal; @@ -634,9 +634,8 @@ buttonpress(struct wl_listener *listener, void *data)  			setmon(grabc, selmon, 0);  			grabc = NULL;  			return; -		} else { -			cursor_mode = CurNormal;  		} +		cursor_mode = CurNormal;  		break;  	}  	/* If the event wasn't handled by the compositor, notify the client with | 
