aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Coppa <dcoppa@gmail.com>2011-04-14 13:07:37 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-04-14 13:08:02 (GMT)
commit870d4d02ee9085f1d0910db3f6e6838749d6a1ce (patch)
treea8a897dfb858ffbe82055fa886b0da0716a6db87
parentfbf5ce8b30f6abef090cc7b61f5d486b847ff0e6 (diff)
downloadfluxbox_pavel-870d4d02ee9085f1d0910db3f6e6838749d6a1ce.zip
fluxbox_pavel-870d4d02ee9085f1d0910db3f6e6838749d6a1ce.tar.bz2
bugfix: use 'unsigned long' to feed XChangeProperty, closes #3285968
old code crashed on sparc64, pid_t seems to be 32bit on that platform.
-rw-r--r--src/Screen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 044d689..bf131fb 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -362,7 +362,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
362 362
363 // we're going to manage the screen, so now add our pid 363 // we're going to manage the screen, so now add our pid
364#ifdef HAVE_GETPID 364#ifdef HAVE_GETPID
365 pid_t bpid = getpid(); 365 unsigned long bpid = static_cast<unsigned long>(getpid());
366 366
367 rootWindow().changeProperty(fluxbox->getFluxboxPidAtom(), XA_CARDINAL, 367 rootWindow().changeProperty(fluxbox->getFluxboxPidAtom(), XA_CARDINAL,
368 sizeof(pid_t) * 8, PropModeReplace, 368 sizeof(pid_t) * 8, PropModeReplace,