This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
       via  5c0b851cc6342ab4cf5996efaeb8b3dbcbf9b490 (commit)
      from  0e995bbf6ea91d8ff18009ce29219a171d92c808 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/5c0b851cc6342ab4cf5996efaeb8b3dbcbf9b490

commit 5c0b851cc6342ab4cf5996efaeb8b3dbcbf9b490
Author: Iain Patterson <[email protected]>
Date:   Fri Sep 14 15:31:14 2012 +0100

    Remove _NET_FRAME_EXTENTS on shutdown.
    
    After we exit there are no window decorations therefore frame extents
    are meaningless.
    
    We could be left with parts of the window being the wrong opacity if the
    property is left intact and a compositing manager configured to draw
    decorations with a different opacity to the rest of the window is still
    running.
    
    Remove the _NET_FRAME_EXTENTS property from all windows when we shut
    down to prevent windows from being drawn incorrectly after we're gone.

diff --git a/src/window.c b/src/window.c
index e7b1036..12f276a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1617,6 +1617,8 @@ void wUnmanageWindow(WWindow *wwin, Bool restore, Bool 
destroyed)
                wApplicationDeactivate(oapp);
        }
 
+       wNETCleanupFrameExtents(wwin);
+
        wWindowDestroy(wwin);
        XFlush(dpy);
 }
diff --git a/src/wmspec.c b/src/wmspec.c
index 56cab82..db3526f 100644
--- a/src/wmspec.c
+++ b/src/wmspec.c
@@ -1642,3 +1642,8 @@ void wNETFrameExtents(WWindow *wwin)
 
        XChangeProperty(dpy, wwin->client_win, net_frame_extents, XA_CARDINAL, 
32, PropModeReplace, (unsigned char *) extents, 4);
 }
+
+void wNETCleanupFrameExtents(WWindow *wwin)
+{
+       XDeleteProperty(dpy, wwin->client_win, net_frame_extents);
+}
diff --git a/src/wmspec.h b/src/wmspec.h
index 47c4c76..0337684 100644
--- a/src/wmspec.h
+++ b/src/wmspec.h
@@ -45,4 +45,5 @@ int wNETWMGetCurrentDesktopFromHint(WScreen *scr);
 char *wNETWMGetIconName(Window window);
 char *wNETWMGetWindowName(Window window);
 void wNETFrameExtents(WWindow *wwin);
+void wNETCleanupFrameExtents(WWindow *wwin);
 #endif

-----------------------------------------------------------------------

Summary of changes:
 src/window.c |    2 ++
 src/wmspec.c |    5 +++++
 src/wmspec.h |    1 +
 3 files changed, 8 insertions(+), 0 deletions(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("The Window Maker window manager")


-- 
To unsubscribe, send mail to [email protected].

Reply via email to