bugfix: use 'unsigned long' to feed XChangeProperty, closes #3285968
old code crashed on sparc64, pid_t seems to be 32bit on that platform.
This commit is contained in:
parent
fbf5ce8b30
commit
870d4d02ee
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
|
||||||
|
|
||||||
// we're going to manage the screen, so now add our pid
|
// we're going to manage the screen, so now add our pid
|
||||||
#ifdef HAVE_GETPID
|
#ifdef HAVE_GETPID
|
||||||
pid_t bpid = getpid();
|
unsigned long bpid = static_cast<unsigned long>(getpid());
|
||||||
|
|
||||||
rootWindow().changeProperty(fluxbox->getFluxboxPidAtom(), XA_CARDINAL,
|
rootWindow().changeProperty(fluxbox->getFluxboxPidAtom(), XA_CARDINAL,
|
||||||
sizeof(pid_t) * 8, PropModeReplace,
|
sizeof(pid_t) * 8, PropModeReplace,
|
||||||
|
|
Loading…
Reference in a new issue