no more using SaveUnder for our openbox-specific windows. it makes things actually slow down, believe it or not!
This commit is contained in:
parent
140c5313cf
commit
de383f35f7
2 changed files with 5 additions and 11 deletions
|
@ -87,25 +87,20 @@ void focus_startup(gboolean reconfig)
|
||||||
focus_indicator.right.obwin.type = Window_Internal;
|
focus_indicator.right.obwin.type = Window_Internal;
|
||||||
focus_indicator.bottom.obwin.type = Window_Internal;
|
focus_indicator.bottom.obwin.type = Window_Internal;
|
||||||
|
|
||||||
attr.save_under = True;
|
|
||||||
attr.override_redirect = True;
|
attr.override_redirect = True;
|
||||||
attr.background_pixel = BlackPixel(ob_display, ob_screen);
|
attr.background_pixel = BlackPixel(ob_display, ob_screen);
|
||||||
focus_indicator.top.win =
|
focus_indicator.top.win =
|
||||||
createWindow(RootWindow(ob_display, ob_screen),
|
createWindow(RootWindow(ob_display, ob_screen),
|
||||||
CWOverrideRedirect | CWBackPixel | CWSaveUnder,
|
CWOverrideRedirect | CWBackPixel, &attr);
|
||||||
&attr);
|
|
||||||
focus_indicator.left.win =
|
focus_indicator.left.win =
|
||||||
createWindow(RootWindow(ob_display, ob_screen),
|
createWindow(RootWindow(ob_display, ob_screen),
|
||||||
CWOverrideRedirect | CWBackPixel | CWSaveUnder,
|
CWOverrideRedirect | CWBackPixel, &attr);
|
||||||
&attr);
|
|
||||||
focus_indicator.right.win =
|
focus_indicator.right.win =
|
||||||
createWindow(RootWindow(ob_display, ob_screen),
|
createWindow(RootWindow(ob_display, ob_screen),
|
||||||
CWOverrideRedirect | CWBackPixel | CWSaveUnder,
|
CWOverrideRedirect | CWBackPixel, &attr);
|
||||||
&attr);
|
|
||||||
focus_indicator.bottom.win =
|
focus_indicator.bottom.win =
|
||||||
createWindow(RootWindow(ob_display, ob_screen),
|
createWindow(RootWindow(ob_display, ob_screen),
|
||||||
CWOverrideRedirect | CWBackPixel | CWSaveUnder,
|
CWOverrideRedirect | CWBackPixel, &attr);
|
||||||
&attr);
|
|
||||||
|
|
||||||
stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.top));
|
stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.top));
|
||||||
stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.left));
|
stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.left));
|
||||||
|
|
|
@ -67,9 +67,8 @@ ObMenuFrame* menu_frame_new(ObMenu *menu, ObClient *client)
|
||||||
self->client = client;
|
self->client = client;
|
||||||
|
|
||||||
attr.event_mask = FRAME_EVENTMASK;
|
attr.event_mask = FRAME_EVENTMASK;
|
||||||
attr.save_under = True;
|
|
||||||
self->window = createWindow(RootWindow(ob_display, ob_screen),
|
self->window = createWindow(RootWindow(ob_display, ob_screen),
|
||||||
CWEventMask | CWSaveUnder, &attr);
|
CWEventMask, &attr);
|
||||||
attr.event_mask = TITLE_EVENTMASK;
|
attr.event_mask = TITLE_EVENTMASK;
|
||||||
self->title = createWindow(self->window, CWEventMask, &attr);
|
self->title = createWindow(self->window, CWEventMask, &attr);
|
||||||
self->items = createWindow(self->window, 0, NULL);
|
self->items = createWindow(self->window, 0, NULL);
|
||||||
|
|
Loading…
Reference in a new issue