summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bdm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 5cc79b2..29f8f7c 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -35,7 +35,7 @@ static void render (int width, int height, GdkPixbuf *pixbuf)
static gboolean on_alpha_window_expose(GtkWidget * widget, GdkEventExpose * expose, GdkPixbuf *pixbuf)
{
static int iWidth;
- static int iHeight;
+ static int iHeight;
g_pCairoContext = gdk_cairo_create(widget->window);
cairo_set_operator (g_pCairoContext, CAIRO_OPERATOR_SOURCE);
@@ -154,6 +154,7 @@ int main(int argc, char * argv[])
on_alpha_screen_changed(dwindow,NULL,NULL);
gtk_window_resize(GTK_WINDOW(dwindow),onex,oney);
gtk_widget_set_app_paintable(dwindow, TRUE);
+ gtk_window_set_keep_below(window,TRUE);
g_signal_connect( G_OBJECT(dwindow),"expose-event",G_CALLBACK(on_alpha_window_expose),scaledpix);
gtk_widget_show(GTK_WINDOW(dwindow));
on_alpha_window_expose(dwindow,0,scaledpix);