mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Set WM_CLASS window hint for Xorg
This commit is contained in:
@@ -1582,6 +1582,7 @@ ClientLauncher::~ClientLauncher()
|
||||
device->drop();
|
||||
}
|
||||
|
||||
|
||||
bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
|
||||
{
|
||||
init_args(game_params, cmd_args);
|
||||
@@ -1602,11 +1603,14 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (device->getVideoDriver() == NULL) {
|
||||
video::IVideoDriver *video_driver = device->getVideoDriver();
|
||||
if (video_driver == NULL) {
|
||||
errorstream << "Could not initialize video driver." << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
porting::setXorgClassHint(video_driver->getExposedVideoData(), "Minetest");
|
||||
|
||||
/*
|
||||
This changes the minimum allowed number of vertices in a VBO.
|
||||
Default is 500.
|
||||
|
Reference in New Issue
Block a user