diff --git a/src/actions.c b/src/actions.c index 09e78f89..ea34c703 100644 --- a/src/actions.c +++ b/src/actions.c @@ -2215,7 +2215,7 @@ void wMakeWindowVisible(WWindow *wwin) } } -void movePionterToWindowCenter(WWindow *wwin) +void movePointerToWindowCenter(WWindow *wwin) { if (!wPreferences.pointer_with_half_max_windows) return; diff --git a/src/actions.h b/src/actions.h index 966626b9..fdc1c565 100644 --- a/src/actions.h +++ b/src/actions.h @@ -84,7 +84,7 @@ void wUnfullscreenWindow(WWindow *wwin); void animateResize(WScreen *scr, int x, int y, int w, int h, int fx, int fy, int fw, int fh); void update_saved_geometry(WWindow *wwin); -void movePionterToWindowCenter(WWindow *wwin); +void movePointerToWindowCenter(WWindow *wwin); void moveBetweenHeads(WWindow *wwin, int direction); #endif diff --git a/src/event.c b/src/event.c index 6b160dd1..69f284ac 100644 --- a/src/event.c +++ b/src/event.c @@ -1512,7 +1512,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_HORIZONTAL | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_LHMAXIMIZE: @@ -1520,7 +1520,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_VERTICAL | MAX_LEFTHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_RHMAXIMIZE: @@ -1528,7 +1528,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_VERTICAL | MAX_RIGHTHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_THMAXIMIZE: @@ -1536,7 +1536,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_HORIZONTAL | MAX_TOPHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_BHMAXIMIZE: @@ -1544,7 +1544,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_HORIZONTAL | MAX_BOTTOMHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_LTCMAXIMIZE: @@ -1552,7 +1552,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_LEFTHALF | MAX_TOPHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_RTCMAXIMIZE: @@ -1560,7 +1560,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_RIGHTHALF | MAX_TOPHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_LBCMAXIMIZE: @@ -1568,7 +1568,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_LEFTHALF | MAX_BOTTOMHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_RBCMAXIMIZE: @@ -1576,7 +1576,7 @@ static void handleKeyPress(XEvent * event) CloseWindowMenu(scr); handleMaximize(wwin, MAX_RIGHTHALF | MAX_BOTTOMHALF | MAX_KEYBOARD); - movePionterToWindowCenter(wwin); + movePointerToWindowCenter(wwin); } break; case WKBD_MAXIMUS: