From a08c3e7126f3346883f2db717670fc12f20142ed Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 12 Jun 2003 14:32:08 +0000 Subject: moved cursor to FbWinFrameTheme and setting pid of fluxbox on root window here instead of in BScreen --- src/fluxbox.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 7b87980..f84c513 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,11 +22,11 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.156 2003/06/11 14:53:54 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.157 2003/06/12 14:32:08 fluxgen Exp $ #include "fluxbox.hh" -#include "i18n.hh" +#include "I18n.hh" #include "Screen.hh" #include "Toolbar.hh" #include "Window.hh" @@ -71,7 +71,7 @@ #include #include #include -#include + // X extensions #ifdef SHAPE #include @@ -95,10 +95,6 @@ #include #endif // HAVE_SYS_PARAM_H -#ifndef MAXPATHLEN -#define MAXPATHLEN 255 -#endif // MAXPATHLEN - #ifdef HAVE_SYS_SELECT_H #include #endif // HAVE_SYS_SELECT_H @@ -447,11 +443,6 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile sigh.registerHandler(SIGUSR2, this); Display *disp = FbTk::App::instance()->display(); - //setup cursor bitmaps - cursor.session = XCreateFontCursor(disp, XC_left_ptr); - cursor.move = XCreateFontCursor(disp, XC_fleur); - cursor.ll_angle = XCreateFontCursor(disp, XC_ll_angle); - cursor.lr_angle = XCreateFontCursor(disp, XC_lr_angle); s_singleton = this; m_have_shape = false; @@ -510,6 +501,15 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile delete screen; continue; } + +#ifdef HAVE_GETPID + pid_t bpid = getpid(); + + screen->rootWindow().changeProperty(getFluxboxPidAtom(), XA_CARDINAL, + sizeof(pid_t) * 8, PropModeReplace, + (unsigned char *) &bpid, 1); +#endif // HAVE_GETPID + #ifdef HAVE_RANDR // setup RANDR for this screens root window // we need to determine if we should use old randr select input function or not -- cgit v0.11.2