From de383f35f792e05259da42263fb8b1dba7d2a3f5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 2 Mar 2007 22:06:13 +0000 Subject: [PATCH] no more using SaveUnder for our openbox-specific windows. it makes things actually slow down, believe it or not! --- openbox/focus.c | 13 ++++--------- openbox/menuframe.c | 3 +-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/openbox/focus.c b/openbox/focus.c index 9de0c808..edd26b69 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -87,25 +87,20 @@ void focus_startup(gboolean reconfig) focus_indicator.right.obwin.type = Window_Internal; focus_indicator.bottom.obwin.type = Window_Internal; - attr.save_under = True; attr.override_redirect = True; attr.background_pixel = BlackPixel(ob_display, ob_screen); focus_indicator.top.win = createWindow(RootWindow(ob_display, ob_screen), - CWOverrideRedirect | CWBackPixel | CWSaveUnder, - &attr); + CWOverrideRedirect | CWBackPixel, &attr); focus_indicator.left.win = createWindow(RootWindow(ob_display, ob_screen), - CWOverrideRedirect | CWBackPixel | CWSaveUnder, - &attr); + CWOverrideRedirect | CWBackPixel, &attr); focus_indicator.right.win = createWindow(RootWindow(ob_display, ob_screen), - CWOverrideRedirect | CWBackPixel | CWSaveUnder, - &attr); + CWOverrideRedirect | CWBackPixel, &attr); focus_indicator.bottom.win = createWindow(RootWindow(ob_display, ob_screen), - CWOverrideRedirect | CWBackPixel | CWSaveUnder, - &attr); + CWOverrideRedirect | CWBackPixel, &attr); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.top)); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.left)); diff --git a/openbox/menuframe.c b/openbox/menuframe.c index fa0af530..a3aee8be 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -67,9 +67,8 @@ ObMenuFrame* menu_frame_new(ObMenu *menu, ObClient *client) self->client = client; attr.event_mask = FRAME_EVENTMASK; - attr.save_under = True; self->window = createWindow(RootWindow(ob_display, ob_screen), - CWEventMask | CWSaveUnder, &attr); + CWEventMask, &attr); attr.event_mask = TITLE_EVENTMASK; self->title = createWindow(self->window, CWEventMask, &attr); self->items = createWindow(self->window, 0, NULL); -- 2.45.2