This patch adds support for the _NET_FRAME_EXTENTS property as described in the EWMH spec. With it I was able to use the compton compositing manager to draw fully opaque windows with semi-transparent titlebars and resizebars. Set the _NET_FRAME_EXTENTS property based on border widths and titlebar/resizebar heights. The EWMH spec says: "_NET_FRAME_EXTENTS, left, right, top, bottom, CARDINAL[4]/32 The Window Manager MUST set _NET_FRAME_EXTENTS to the extents of the window's frame. left, right, top and bottom are widths of the respective borders added by the Window Manager."
49 lines
1.8 KiB
C
49 lines
1.8 KiB
C
/* wmspec.h-- support for the wm-spec Hints
|
|
*
|
|
* Window Maker window manager
|
|
*
|
|
* Copyright (c) 1998-2003 Alfredo K. Kojima
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WMSPEC_H_
|
|
#define _WMSPEC_H_
|
|
|
|
#include "screen.h"
|
|
#include "window.h"
|
|
#include <X11/Xlib.h>
|
|
|
|
void wNETWMInitStuff(WScreen *scr);
|
|
void wNETWMCleanup(WScreen *scr);
|
|
void wNETWMUpdateWorkarea(WScreen *scr, WArea usableArea);
|
|
Bool wNETWMGetUsableArea(WScreen *scr, int head, WArea *area);
|
|
Bool wNETWMCheckInitialClientState(WWindow *wwin);
|
|
Bool wNETWMProcessClientMessage(XClientMessageEvent *event);
|
|
Bool wNETWMCheckClientHints(WWindow *wwin, int *layer, int *workspace);
|
|
Bool wNETWMCheckClientHintChange(WWindow *wwin, XPropertyEvent *event);
|
|
void wNETWMShowingDesktop(WScreen *scr, Bool show);
|
|
void wNETWMUpdateActions(WWindow *wwin, Bool del);
|
|
void wNETWMUpdateDesktop(WScreen *scr);
|
|
void wNETWMPositionSplash(WWindow *wwin, int *x, int *y, int width, int height);
|
|
int wNETWMGetPidForWindow(Window window);
|
|
int wNETWMGetCurrentDesktopFromHint(WScreen *scr);
|
|
char *wNETWMGetIconName(Window window);
|
|
char *wNETWMGetWindowName(Window window);
|
|
void wNETFrameExtents(WWindow *wwin);
|
|
#endif
|