1 diff --git a/pyautogui/__init__.py b/pyautogui/__init__.py
2 index ec7d097..443b146 100644
3 --- a/pyautogui/__init__.py
4 +++ b/pyautogui/__init__.py
5 @@ -216,9 +216,9 @@ try:
7 @raisePyAutoGUIImageNotFoundException
8 def locateOnWindow(*args, **kwargs):
9 - return pyscreeze.locateOnWindow(*args, **kwargs)
10 + return pyscreeze.locateOnScreen(*args, **kwargs)
12 - locateOnWindow.__doc__ = pyscreeze.locateOnWindow.__doc__
13 + locateOnWindow.__doc__ = pyscreeze.locateOnScreen.__doc__
17 diff --git a/setup.py b/setup.py
18 index 196394d..6d90a88 100644
21 @@ -29,8 +29,7 @@ setup(
23 install_requires=['pyobjc-core;platform_system=="Darwin"',
24 'pyobjc;platform_system=="Darwin"',
25 - 'python3-Xlib;platform_system=="Linux" and python_version>="3.0"',
26 - 'python-xlib;platform_system=="Linux" and python_version<"3.0"',
27 + 'python-xlib;platform_system=="Linux"',