summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-03-18 03:41:09 +0100
committerAndreas Haas <liu.gam3@gmail.com>2017-03-18 12:13:14 +0100
commitfc84ccc468e14dd8cd317c29424011d76ec85dd5 (patch)
tree3b901fe98bdccab74b44f6c2390bc3b15dced863 /platform/x11
parent7ec697695f9a12cbc2338725d887e752022e30f4 (diff)
X11: Don't reset mouse cursor theme.
On KDE (and possibly others) the "default" cursor theme is actually some system default, not the one you've set in the desktop setting. This was especially annoying when using a white cursor, as Godot would then reset back to a dark one. In my case it was also keeping the cursor from changing its shape.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/os_x11.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index 4f79f2fb5d..d7cb69f2b9 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -332,12 +332,11 @@ void OS_X11::initialize(const VideoMode &p_desired, int p_video_driver, int p_au
WARN_PRINT("XCreateIC couldn't create xic");
}
- XcursorSetTheme(x11_display, "default");
cursor_size = XcursorGetDefaultSize(x11_display);
cursor_theme = XcursorGetTheme(x11_display);
if (!cursor_theme) {
- print_line("not found theme");
+ WARN_PRINT("Could not find cursor theme");
cursor_theme = "default";
}