diff options
| author | Wilson E. Alvarez | 2017-08-21 15:15:36 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2017-08-21 15:15:55 -0400 |
| commit | 738d2ab96997faa1e13b91e38cf8a0000d829f70 (patch) | |
| tree | e33258663017edb924695e68224ba836e5fc9f08 /platform/x11/os_x11.cpp | |
| parent | 4717d37bfa867d8cdcd4805967324978da6701b7 (diff) | |
| download | godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.tar.gz godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.tar.zst godot-738d2ab96997faa1e13b91e38cf8a0000d829f70.zip | |
Diffstat (limited to 'platform/x11/os_x11.cpp')
| -rw-r--r-- | platform/x11/os_x11.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index a23f2f132..8b4253c72 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -191,8 +191,7 @@ void OS_X11::initialize(const VideoMode &p_desired, int p_video_driver, int p_au ::XIMStyles *xim_styles = NULL; xim_style = 0L; - char *imvalret = NULL; - imvalret = XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); + char *imvalret = XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); if (imvalret != NULL || xim_styles == NULL) { fprintf(stderr, "Input method doesn't support any styles\n"); } @@ -2140,8 +2139,7 @@ bool OS_X11::is_vsync_enabled() const { void OS_X11::set_context(int p_context) { - XClassHint *classHint = NULL; - classHint = XAllocClassHint(); + XClassHint *classHint = XAllocClassHint(); if (classHint) { if (p_context == CONTEXT_EDITOR) |
