Fix for windowed mode
authorIain Patterson <me@iain.cx>
Sun, 8 Mar 2009 12:39:44 +0000 (12:39 +0000)
committerIain Patterson <me@iain.cx>
Sun, 8 Mar 2009 12:39:44 +0000 (12:39 +0000)
DAMakePixmap() assumes the window is docked and of constant size.

pager.c

diff --git a/pager.c b/pager.c
index d7818ef..6c60e09 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -287,7 +287,7 @@ void page() {
 
   enumerate_clients(&clients, &num_clients, &active_desktop, &active_window);
 
-  pixmap = DAMakePixmap();
+  pixmap = XCreatePixmap(DADisplay, DAWindow, dockapp_width, dockapp_height, dockapp_depth);
   if (active_desktop == desktop) gc = active_desktopGC;
   else gc = inactive_desktopGC;
   draw_relief(pixmap, dockapp_width, dockapp_height, gc);