all repos — fluxbox @ 25e318b255666a3103865456c65175a7f0f6b85a

custom fork of the fluxbox windowmanager

setup cursors before creating screens
fluxgen fluxgen
commit

25e318b255666a3103865456c65175a7f0f6b85a

parent

08bbf9377ceb41138e73bb14ec19f66d1788de26

1 files changed, 9 insertions(+), 8 deletions(-)

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

@@ -22,7 +22,7 @@ // 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.70 2002/08/17 22:14:00 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.71 2002/08/18 11:01:52 fluxgen Exp $ #include "fluxbox.hh"

@@ -331,6 +331,12 @@ sigh->registerHandler(SIGHUP, this);

sigh->registerHandler(SIGUSR1, this); sigh->registerHandler(SIGUSR2, this); + //setup cursor bitmaps + cursor.session = XCreateFontCursor(getXDisplay(), XC_left_ptr); + cursor.move = XCreateFontCursor(getXDisplay(), XC_fleur); + cursor.ll_angle = XCreateFontCursor(getXDisplay(), XC_ll_angle); + cursor.lr_angle = XCreateFontCursor(getXDisplay(), XC_lr_angle); + //singleton pointer singleton = this; BaseDisplay::GrabGuard gg(*this);

@@ -379,7 +385,7 @@ }

screenList.push_back(screen); } - + I18n *i18n = I18n::instance(); if (screenList.size() == 0) { fprintf(stderr,

@@ -390,12 +396,7 @@ "Fluxbox::Fluxbox: no managable screens found, aborting.\n"));

throw static_cast<int>(3); } - //setup cursor bitmaps - cursor.session = XCreateFontCursor(getXDisplay(), XC_left_ptr); - cursor.move = XCreateFontCursor(getXDisplay(), XC_fleur); - cursor.ll_angle = XCreateFontCursor(getXDisplay(), XC_ll_angle); - cursor.lr_angle = XCreateFontCursor(getXDisplay(), XC_lr_angle); - + XSynchronize(getXDisplay(), False); XSync(getXDisplay(), False);