From: Paul A. <alb...@rd...> - 2007-05-14 14:51:15
|
Found a bug in qvwm-1.1.12. If a firefox window is positioned at the top left of a display--for example, if the firefox window is maximized--and firefox is put in fullscreen mode via the f11 key the application is displayed correctly. However, when the application is restored to its original state using the f11 key again the title bar gets clipped off. Seems like Qvwm::Configure method doesn't handle reposition or resize correctly. Here's a fix: diff -r qvwm-1.1.12-pristine/src/configure.cc qvwm-1.1.12-thinix/src/configure.cc 91c91,92 < rc.x = cre->x + paging->origin.x - borderWidth; --- > /* rc.x = cre->x + paging->origin.x - borderWidth; */ > rc.x = cre->x + paging->origin.x; 98c99 < rc.y -= topBorder + titleHeight + titleEdge; --- > /* rc.y -= topBorder + titleHeight + titleEdge; */ 100a102 > if ((rc.x == 0) && (cre->width == rcWidth)) rc.x -= borderWidth; 104a107 > if ((rc.y == 0) && (cre->height == rcHeight)) rc.y -= topBorder + titleHeight + titleEdge; diff -r qvwm-1.1.12-pristine/src/main.cc qvwm-1.1.12-thinix/src/main.cc 110a111 > int rcWidth, rcHeight; 229,230c230,231 < DisplayWidth(display, screen), < DisplayHeight(display, screen)); --- > rcWidth = DisplayWidth(display, screen), > rcHeight = DisplayHeight(display, screen)); diff -r qvwm-1.1.12-pristine/src/main.h qvwm-1.1.12-thinix/src/main.h 39a40 > extern int rcWidth, rcHeight; Paul Albrecht |