From: root Date: Sat, 19 Feb 2005 04:16:49 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=9e9345df2547384e4b3ecee2b7b04a3e201db5e7;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index b1c6519f..fa12bb40 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ +TODO: !! If I resize the urxvt window to be 4 chars high (or less) it seems to +> crash when scrolling with the mouse wheel. Mikael Magnusson. TODO: do font request caching, might help rxvtd on some machines TODO: manpage 900mb update TODO: safer command: keymap processing. diff --git a/src/init.C b/src/init.C index e47996d8..74a17d8b 100644 --- a/src/init.C +++ b/src/init.C @@ -998,11 +998,11 @@ rxvt_term::create_windows (int argc, const char *const *argv) refresh_type = FAST_REFRESH; XClearWindow (disp, top); // TODO: make XMapNotify-event-code a function and call it - // TODO: how can I detetc visibility without unmpa/map? + // TODO: how can I detect visibility without unmap/map? // TODO: focusin etc. } #else - // it'S easiets just to unmap/map to get all state correctly set-up + // it's easiest just to unmap/map to get all state correctly set-up XUnmapWindow (disp, top); #endif } @@ -1105,8 +1105,6 @@ rxvt_term::create_windows (int argc, const char *const *argv) vt_emask = ExposureMask | ButtonPressMask | ButtonReleaseMask | PropertyChangeMask; - pointer_unblank (); - #ifdef POINTER_BLANK if (options & Opt_pointerBlank) vt_emask |= PointerMotionMask; @@ -1185,7 +1183,13 @@ rxvt_term::create_windows (int argc, const char *const *argv) pix_colors = pix_colors_unfocused; #endif + pointer_unblank (); scr_recolour (); + +#if ENABLE_XEMBED + // why this is necessary, I don't know, race condition?? + XMoveWindow (disp, TermWin.vt, window_vt_x, window_vt_y); +#endif } /* ------------------------------------------------------------------------- * diff --git a/src/main.C b/src/main.C index 7828b46d..775cc8a5 100644 --- a/src/main.C +++ b/src/main.C @@ -1252,6 +1252,7 @@ rxvt_term::set_widthheight (unsigned int width, unsigned int height) if (width == 0 || height == 0) { XGetWindowAttributes (display->display, display->root, &wattr); + if (width == 0) width = wattr.width - szHint.base_width; if (height == 0)