[Xfce4-commits] r26456 - xfwm4/trunk/src
Olivier Fourdan
olivier at xfce.org
Mon Dec 10 23:27:15 CET 2007
Author: olivier
Date: 2007-12-10 22:27:15 +0000 (Mon, 10 Dec 2007)
New Revision: 26456
Modified:
xfwm4/trunk/src/compositor.c
xfwm4/trunk/src/screen.h
Log:
Set depth/visual in overlay output window
Modified: xfwm4/trunk/src/compositor.c
===================================================================
--- xfwm4/trunk/src/compositor.c 2007-12-10 19:47:45 UTC (rev 26455)
+++ xfwm4/trunk/src/compositor.c 2007-12-10 22:27:15 UTC (rev 26456)
@@ -928,6 +928,7 @@
if ((screen_info->params->show_popup_shadow &&
WIN_IS_OVERRIDE(cw) &&
+ !WIN_IS_FULLSCREEN(cw) &&
!(WIN_IS_ARGB(cw) || WIN_IS_SHAPED(cw))) ||
(screen_info->params->show_frame_shadow &&
!WIN_IS_OVERRIDE(cw) &&
@@ -2754,8 +2755,6 @@
#if HAVE_OVERLAYS
display_info->have_overlays = ((composite_major > 0) || (composite_minor >= 3));
-#else /* HAVE_OVERLAYS */
- display_info->have_overlays = FALSE;
#endif /* HAVE_OVERLAYS */
#else /* HAVE_COMPOSITOR */
@@ -2828,23 +2827,18 @@
screen_info->overlay = XCompositeGetOverlayWindow (display_info->dpy, screen_info->xroot);
if (screen_info->overlay != None)
{
-#if USE_CHILD_OVERLAY
XSetWindowAttributes attributes;
- attributes.override_redirect = TRUE;
screen_info->root_overlay = XCreateWindow (display_info->dpy, screen_info->overlay,
- 0, 0, screen_info->width, screen_info->height, 0, 0,
- InputOutput, CopyFromParent, CWOverrideRedirect, &attributes);
+ 0, 0, screen_info->width, screen_info->height, 0, screen_info->depth,
+ InputOutput, screen_info->visual, 0, &attributes);
XMapWindow (display_info->dpy, screen_info->root_overlay);
XRaiseWindow (display_info->dpy, screen_info->overlay);
+ XShapeCombineRectangles (display_info->dpy, screen_info->overlay,
+ ShapeInput, 0, 0, NULL, 0, ShapeSet, Unsorted);
XShapeCombineRectangles (display_info->dpy, screen_info->root_overlay,
ShapeInput, 0, 0, NULL, 0, ShapeSet, Unsorted);
screen_info->output = screen_info->root_overlay;
-#else
- screen_info->output = screen_info->overlay;
-#endif /* USE_CHILD_OVERLAY */
- XShapeCombineRectangles (display_info->dpy, screen_info->overlay,
- ShapeInput, 0, 0, NULL, 0, ShapeSet, Unsorted);
TRACE ("Overlay enabled");
}
else
@@ -2931,10 +2925,9 @@
#if HAVE_OVERLAYS
if (display_info->have_overlays)
{
-#if USE_CHILD_OVERLAY
XDestroyWindow (display_info->dpy, screen_info->root_overlay);
screen_info->root_overlay = None;
-#endif /* USE_CHILD_OVERLAY */
+
XCompositeReleaseOverlayWindow (display_info->dpy, screen_info->overlay);
screen_info->overlay = None;
}
Modified: xfwm4/trunk/src/screen.h
===================================================================
--- xfwm4/trunk/src/screen.h 2007-12-10 19:47:45 UTC (rev 26455)
+++ xfwm4/trunk/src/screen.h 2007-12-10 22:27:15 UTC (rev 26456)
@@ -136,9 +136,7 @@
#ifdef HAVE_COMPOSITOR
#if HAVE_OVERLAYS
Window overlay;
-#if USE_CHILD_OVERLAY
Window root_overlay;
-#endif /* USE_CHILD_OVERLAY */
#endif
GList *cwindows;
Window output;
More information about the Xfce4-commits
mailing list