1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-07 02:10:22 +02:00

Provide Xorg/net wm process ID (#7445)

Adding support for _NET_WM_PID as defined in Extended Window Manager Hints
Move verbose messaging to setupXorgTopLevelWindow method as Xorg messages should only occur when running in Xorg env.
Irrlicht returns the XDisplay as a void* and XWindow as an unsigned long so reinterpret those as the appropriate type. Also fixed a spaces for tab formating issue
This commit is contained in:
thoughtjigs
2018-06-17 01:41:07 -07:00
committed by SmallJoker
parent ac6e8e2914
commit 3d516079eb
3 changed files with 109 additions and 14 deletions

View File

@ -51,8 +51,8 @@ public:
static float getDisplayDensity();
static v2u32 getDisplaySize();
static void setXorgClassHint(const video::SExposedVideoData &video_data,
const std::string &name);
bool setupTopLevelWindow(const std::string &name);
void setupTopLevelXorgWindow(const std::string &name);
bool setWindowIcon();
bool setXorgWindowIconFromPath(const std::string &icon_file);
static bool print_video_modes();