summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2016-07-04 01:33:46 +0200
committerest31 <MTest31@outlook.com>2016-07-05 17:02:06 +0200
commit5d4d3f8366b74d9c3da892d94188defc49407ebf (patch)
tree04b61eecd4493660cd6505b1f78788b58cf1815e /src/client
parentc1bdb552bc3ec0fda1b82ab2c44a5c31ab53bd24 (diff)
downloadminetest-5d4d3f8366b74d9c3da892d94188defc49407ebf.tar.gz
minetest-5d4d3f8366b74d9c3da892d94188defc49407ebf.tar.bz2
minetest-5d4d3f8366b74d9c3da892d94188defc49407ebf.zip
Finally set a window icon on X11
Since the creation of minetest, it had no window icon on X11. Now we have one. The misc/minetest-xorg-icon-128.png file is a rendering of the misc/minetest.svg file with inkscape, created with something like: inkscape -z -e misc/minetest-xorg-icon-128.png -w 128 -h 128 misc/minetest.svg
Diffstat (limited to 'src/client')
-rw-r--r--src/client/clientlauncher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp
index a0781ef37..aa3c2d548 100644
--- a/src/client/clientlauncher.cpp
+++ b/src/client/clientlauncher.cpp
@@ -114,6 +114,9 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
porting::setXorgClassHint(video_driver->getExposedVideoData(), PROJECT_NAME_C);
+ porting::setXorgWindowIcon(device,
+ porting::path_share + "/misc/minetest-xorg-icon-128.png");
+
/*
This changes the minimum allowed number of vertices in a VBO.
Default is 500.