diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index 4c1a7c6ddc..80e86ff9af 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -383,7 +383,6 @@ static bool X11_VideoInit(SDL_VideoDevice *_this) #define GET_ATOM(X) data->atoms.X = X11_XInternAtom(data->display, #X, False) GET_ATOM(WM_PROTOCOLS); GET_ATOM(WM_DELETE_WINDOW); - GET_ATOM(WM_TAKE_FOCUS); GET_ATOM(WM_NAME); GET_ATOM(WM_TRANSIENT_FOR); GET_ATOM(WM_STATE); diff --git a/src/video/x11/SDL_x11video.h b/src/video/x11/SDL_x11video.h index a80712d362..e9c48fdd73 100644 --- a/src/video/x11/SDL_x11video.h +++ b/src/video/x11/SDL_x11video.h @@ -70,7 +70,6 @@ struct SDL_VideoData struct { Atom WM_PROTOCOLS; Atom WM_DELETE_WINDOW; - Atom WM_TAKE_FOCUS; Atom WM_NAME; Atom WM_TRANSIENT_FOR; Atom WM_STATE; diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c index 9180577e26..deaf67c487 100644 --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -844,7 +844,6 @@ bool X11_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties int proto_count = 0; protocols[proto_count++] = data->atoms.WM_DELETE_WINDOW; // Allow window to be deleted by the WM - protocols[proto_count++] = data->atoms.WM_TAKE_FOCUS; // Since we will want to set input focus explicitly // Default to using ping if there is no hint if (SDL_GetHintBoolean(SDL_HINT_VIDEO_X11_NET_WM_PING, true)) {