Bugfix: Don’t send fake configure notify with not yet rendered rect for floating windows

This fixes a bug where opening the Xpdf find dialog when Xpdf is in fullscreen
mode would crash Xpdf due to a zero-width and zero-height ConfigureNotify rect.
This commit is contained in:
Michael Stapelberg
2011-01-21 21:01:02 +01:00
parent 1fecbb3e5a
commit 81ff1f976d
2 changed files with 8 additions and 0 deletions

View File

@ -192,6 +192,8 @@ void fake_absolute_configure_notify(Con *con) {
absolute.width = con->window_rect.width;
absolute.height = con->window_rect.height;
DLOG("fake rect = (%d, %d, %d, %d)\n", absolute.x, absolute.y, absolute.width, absolute.height);
fake_configure_notify(conn, absolute, con->window->id);
}