File compiz-gwd-fix-maximised-topedge-clicks.patch of Package compiz
--- a/gtk/window-decorator/decorator.c
+++ b/gtk/window-decorator/decorator.c
@@ -244,6 +244,8 @@ update_event_windows (WnckWindow *win)
/* Pixmap mode with window geometry - create small event windows */
if (w != 0 && h != 0)
{
+ if (d->state & WNCK_WINDOW_STATE_MAXIMIZED_VERTICALLY)
+ y = 0;
XMapWindow (xdisplay, d->event_windows[i][j].window);
XMoveResizeWindow (xdisplay, d->event_windows[i][j].window,
x, y, w, h);
@@ -288,6 +290,8 @@ update_event_windows (WnckWindow *win)
if (gwd_theme_get_button_position (gwd_theme, d, i, width, height,
&x, &y, &w, &h))
{
+ if (d->state & WNCK_WINDOW_STATE_MAXIMIZED_VERTICALLY)
+ y = 0;
Window x11_win = d->button_windows[i].window;
XMapWindow (xdisplay, x11_win);
XMoveResizeWindow (xdisplay, x11_win, x, y, w, h);