From 97f4d52002b7da7befdaaf87e2c4e1904e3fc57a Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 27 May 2003 13:59:55 +0000 Subject: [PATCH] I get my events on decor again and probably ruined exposure for some weird case. bwa ha ha --- openbox/frame.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openbox/frame.c b/openbox/frame.c index a7820926..43c3f8ee 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -69,6 +69,7 @@ Frame *frame_new() fd->surface = RrSurfaceNewChild(RR_SURFACE_PLANAR, self->surface, 1); RrPlanarSet(fd->surface, RR_PLANAR_PIPECROSS, &pri, &sec); fd->window = RrSurfaceWindow(fd->surface); + XSelectInput(ob_display, fd->window, ELEMENT_EVENTMASK); fd->anchor = Decor_Top; RECT_SET(fd->area, 0, 0, 120, 20); fd->type = Decor_Titlebar; @@ -82,6 +83,7 @@ Frame *frame_new() fd->surface = RrSurfaceNewChild(RR_SURFACE_PLANAR, self->surface, 1); RrPlanarSet(fd->surface, RR_PLANAR_PIPECROSS, &pri, &sec); fd->window = RrSurfaceWindow(fd->surface); + XSelectInput(ob_display, fd->window, ELEMENT_EVENTMASK); fd->anchor = Decor_Right; RECT_SET(fd->area, 0, 0, 5, 100); fd->type = Decor_Titlebar; @@ -95,6 +97,7 @@ Frame *frame_new() fd->surface = RrSurfaceNewChild(RR_SURFACE_PLANAR, self->surface, 1); RrPlanarSet(fd->surface, RR_PLANAR_PIPECROSS, &pri, &sec); fd->window = RrSurfaceWindow(fd->surface); + XSelectInput(ob_display, fd->window, ELEMENT_EVENTMASK); fd->anchor = Decor_BottomLeft; RECT_SET(fd->area, 0, 0, 30, 30); fd->type = Decor_Titlebar; -- 2.34.1