summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-28 15:55:30 +0000
committerracarr <racarr>2007-01-28 15:55:30 +0000
commit3a0b53e86267afa83485ac3cbee293c96c79ea2d (patch)
tree1d9f3e979b89867fd8a17dc7a44f6379f1ebdd01
parent1cecc206698b69ff70241448c899d8db01ebd7fb (diff)
downloadberyl-desktop-manager-3a0b53e86267afa83485ac3cbee293c96c79ea2d.tar.gz
beryl-desktop-manager-3a0b53e86267afa83485ac3cbee293c96c79ea2d.tar.bz2
BDM: Remove something stupid that I accidently committed after I half added it but then realized it was wrong and that I was tired and went to sleep
-rw-r--r--src/bdm.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 896f2e6..81789e4 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -57,18 +57,6 @@ static void render (ScreenArea * area)
static gboolean on_alpha_window_expose(GtkWidget * widget, GdkEventExpose * expose, ScreenArea * area)
{
- XEvent event;
- Display *display = XOpenDisplay(getenv("DISPLAY"));
- while (XPending(display))
- {
- XNextEvent(display,&event);
- switch (event.type)
- {
- printf("Xevent");
- case ButtonPress:
- area->alpha -= .05f;
- }
- }
render(area);
}
@@ -214,7 +202,9 @@ int main(int argc, char * argv[])
gtk_window_resize(GTK_WINDOW(dwindow),R.width,R.height);
gtk_widget_set_app_paintable(dwindow, TRUE);
gtk_window_set_keep_below(GTK_WINDOW(dwindow),TRUE);
+ gtk_window_set_accept_focus(GTK_WINDOW(dwindow),TRUE);
g_signal_connect( G_OBJECT(dwindow),"expose-event",G_CALLBACK(on_alpha_window_expose),sa);
+ g_signal_connect( G_OBJECT(dwindow),"key-press-event",G_CALLBACK(on_key_press),sa);
gtk_widget_show(dwindow);
on_alpha_window_expose(dwindow,0,sa);