all repos — fluxbox @ c6a969f61b2bde72275e4ebe4dc5465556ab02c7

custom fork of the fluxbox windowmanager

fixed copy x pixmap bug
fluxgen fluxgen
commit

c6a969f61b2bde72275e4ebe4dc5465556ab02c7

parent

eada72fae30d31291d3c9135242725d6b5bd6396

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M src/FbTk/FbPixmap.ccsrc/FbTk/FbPixmap.cc

@@ -19,7 +19,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: FbPixmap.cc,v 1.6 2003/08/11 14:58:49 fluxgen Exp $ +// $Id: FbPixmap.cc,v 1.7 2003/08/12 00:25:23 fluxgen Exp $ #include "FbPixmap.hh" #include "App.hh"

@@ -152,15 +152,17 @@ &border_width,

&bpp); // create new pixmap and copy area create(root, new_width, new_height, bpp); - // determine screen gc + Display *disp = FbTk::App::instance()->display(); - XWindowAttributes attr; - XGetWindowAttributes(disp, root, &attr); - GC gc = DefaultGCOfScreen(attr.screen); + + GC gc = XCreateGC(disp, drawable(), 0, 0); + XCopyArea(disp, pm, drawable(), gc, 0, 0, width(), height(), 0, 0); + + XFreeGC(disp, gc); } void FbPixmap::rotate() {