Changes: removed compilation warnings

RevBy: Pertti Kellomaki
pull/1/head
Alexey Shilov 15 years ago
parent 7615862662
commit 4ebc2dcfb0

1
debian/changelog vendored

@ -2,6 +2,7 @@ applauncherd (0.23.0) unstable; urgency=low
* Changes: Removed extra prctl(PR_SET_DUMPABLE, ...)
* Changes: e-booster refactoring
* Changes: removed compilation warnings
-- Alexey Shilov <alexey.shilov@nokia.com> Thu, 10 Mar 2011 14:52:40 +0200

@ -308,11 +308,12 @@ void Booster::requestSplash(const int pid, const std::string &wmclass,
const std::string &pixmapId)
{
std::stringstream st;
st << getpid();
st << pid;
std::string pidStr = st.str();
Display * dpy = XOpenDisplay(NULL);
if (dpy) {
if (dpy)
{
const char *compositorWindowIdProperty = "_NET_SUPPORTING_WM_CHECK";
Atom compositorWindowIdAtom = XInternAtom(dpy, compositorWindowIdProperty, False);
Atom type;
@ -326,7 +327,8 @@ void Booster::requestSplash(const int pid, const std::string &wmclass,
int retval = XGetWindowProperty(dpy, rootWin, compositorWindowIdAtom,
0, 0x7fffffff, False, XA_WINDOW,
&type, &format, &nItems, &bytesAfter, &prop);
if(retval == Success) {
if (retval == Success)
{
// Package up the data and set the property
int len = pidStr.length() + 1
@ -431,7 +433,7 @@ void Booster::setEnvironmentBeforeLaunch()
}
// Load the application and find out the address of main()
void* handle = loadMain();
loadMain();
// Make sure that boosted application can dump core. This must be
// done after set[ug]id().

Loading…
Cancel
Save