summaryrefslogtreecommitdiffstats
path: root/client/x11/platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/x11/platform.cpp')
-rw-r--r--client/x11/platform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index 9094a64a..df8fa768 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -534,7 +534,7 @@ XIC XPlatform::get_input_context()
void XPlatform::set_win_proc(Window win, win_proc_t proc)
{
int res;
-
+
XLockDisplay(x_display);
res = XSaveContext(x_display, win, win_proc_context, (XPointer)proc);
XUnlockDisplay(x_display);
@@ -1046,7 +1046,7 @@ bool DynamicScreen::set_screen_size(int size_index)
XLockDisplay(get_display());
config = XRRGetScreenInfo(get_display(), root_window);
XUnlockDisplay(get_display());
-
+
if (!config) {
LOG_WARN("get screen info failed");
return false;