mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Set WM_CLASS window hint for Xorg
This commit is contained in:
parent
8fe1d3fc2e
commit
8661b3587b
3 changed files with 32 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue