all repos — fluxbox @ a08c3e7126f3346883f2db717670fc12f20142ed

custom fork of the fluxbox windowmanager

moved cursor to FbWinFrameTheme and setting pid of fluxbox on root window here instead of in BScreen
fluxgen fluxgen
commit

a08c3e7126f3346883f2db717670fc12f20142ed

parent

fa254cccd4f35b787dc1d75004d4d5a0a6b38105

1 files changed, 12 insertions(+), 12 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -22,11 +22,11 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 <X11/Xutil.h>

#include <X11/Xresource.h> #include <X11/Xatom.h> #include <X11/keysym.h> -#include <X11/cursorfont.h> + // X extensions #ifdef SHAPE #include <X11/extensions/shape.h>

@@ -94,10 +94,6 @@

#ifdef HAVE_SYS_PARAM_H #include <sys/param.h> #endif // HAVE_SYS_PARAM_H - -#ifndef MAXPATHLEN -#define MAXPATHLEN 255 -#endif // MAXPATHLEN #ifdef HAVE_SYS_SELECT_H #include <sys/select.h>

@@ -447,11 +443,6 @@ sigh.registerHandler(SIGUSR1, this);

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 @@ if (! screen->isScreenManaged()) {

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