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:
David Coppa 2011-04-14 15:07:37 +02:00 committed by Mathias Gumz
parent fbf5ce8b30
commit 870d4d02ee

View file

@ -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,