Skip to content

Commit

Permalink
Cleanup: Fix typos in code comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
techgeeknz authored and LordAro committed Jun 9, 2020
1 parent 8652a4d commit ee570e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window.cpp
Expand Up @@ -655,7 +655,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, int click_count)
WidgetType widget_type = (nw != nullptr) ? nw->type : WWT_EMPTY;

bool focused_widget_changed = false;
/* If clicked on a window that previously did dot have focus */
/* If clicked on a window that previously did not have focus */
if (_focused_window != w && // We already have focus, right?
(w->window_desc->flags & WDF_NO_FOCUS) == 0 && // Don't lose focus to toolbars
widget_type != WWT_CLOSEBOX) { // Don't change focused window if 'X' (close button) was clicked
Expand Down

0 comments on commit ee570e1

Please sign in to comment.