CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/ewmh.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 Olaf Seibert
3 */
4
5#ifndef _CTWM_EWMH_H
6#define _CTWM_EWMH_H
7
8/*
9 * Switch for experimental code to treat a Desktop window as a Root
10 * window for the purposes of key and button bindings.
11 * It doesn't work as nicely as I hoped though; maybe I'll get some
12 * better idea.
13 */
14/* #define EWMH_DESKTOP_ROOT */
15
21
22/*
23 * The window is to reserve space at the edge of the screen.
24 */
25typedef struct EwmhStrut {
26 struct EwmhStrut *next;
27 struct TwmWindow *win;
28
29 int left;
30 int right;
31 int top;
32 int bottom;
34
35#define EWMH_HAS_STRUT 0x0001
36
37#define EWMH_STATE_MAXIMIZED_VERT 0x0010 /* for _NET_WM_STATE */
38#define EWMH_STATE_MAXIMIZED_HORZ 0x0020 /* for _NET_WM_STATE */
39#define EWMH_STATE_FULLSCREEN 0x0040 /* for _NET_WM_STATE */
40#define EWMH_STATE_SHADED 0x0080 /* for _NET_WM_STATE */
41#define EWMH_STATE_ABOVE 0x0100 /* for _NET_WM_STATE */
42#define EWMH_STATE_BELOW 0x0200 /* for _NET_WM_STATE */
43#define EWMH_STATE_ALL 0xFFF0
44
45/*
46 * OTP priorities of the window types we recognize
47 */
48/* Initial vals for these types, if the user hasn't set something else */
49#define EWMH_PRI_DESKTOP -8
50#define EWMH_PRI_DOCK 4
51
52/* STATE_FULLSCREEN windows with focus get jammed here */
53#define EWMH_PRI_FULLSCREEN 6
54
55/* STATE_ABOVE/BELOW get +/- this to what they would be otherwise */
56#define EWMH_PRI_ABOVE 2
57
58void EwmhInit(void);
61#ifdef VSCREEN
63#endif
64void EwmhTerminate(void);
67Image *EwmhGetIcon(ScreenInfo *scr, TwmWindow *twm_win);
71int EwmhGetOccupation(TwmWindow *twm_win);
72void EwmhUnmapNotify(TwmWindow *twm_win);
77void EwmhGetProperties(TwmWindow *twm_win);
78int EwmhGetInitPriority(TwmWindow *twm_win);
79bool EwmhHasBorder(TwmWindow *twm_win);
80bool EwmhHasTitle(TwmWindow *twm_win);
81bool EwmhOnWindowRing(TwmWindow *twm_win);
83void EwmhSet_NET_SHOWING_DESKTOP(int state);
84void EwmhSet_NET_WM_STATE(TwmWindow *twm_win, int changes);
85
86#endif /* _CTWM_EWMH_H */
static int PlaceX
Definition add_window.c:82
void EwmhInitScreenLate(ScreenInfo *scr)
Definition ewmh.c:349
void EwmhUnmapNotify(TwmWindow *twm_win)
Definition ewmh.c:1689
int EwmhGetInitPriority(TwmWindow *twm_win)
Definition ewmh.c:1864
void EwmhSet_NET_WM_DESKTOP_ws(TwmWindow *twm_win, WorkSpace *ws)
Definition ewmh.c:1487
void EwmhSet_NET_FRAME_EXTENTS(TwmWindow *twm_win)
Set _NET_FRAME_EXTENTS property.
Definition ewmh.c:2099
bool EwmhClientMessage(XClientMessageEvent *msg)
Definition ewmh.c:561
EwmhWindowType
Definition ewmh.h:16
@ wt_Dock
Definition ewmh.h:19
@ wt_Desktop
Definition ewmh.h:18
@ wt_Normal
Definition ewmh.h:17
void EwmhTerminate(void)
Definition ewmh.c:528
void EwmhSelectionClear(XSelectionClearEvent *sev)
Definition ewmh.c:546
int EwmhHandlePropertyNotify(XPropertyEvent *event, TwmWindow *twm_win)
Definition ewmh.c:1403
void EwmhSet_NET_SHOWING_DESKTOP(int state)
Definition ewmh.c:2116
bool EwmhInitScreenEarly(ScreenInfo *scr)
Definition ewmh.c:307
void EwmhAddClientWindow(TwmWindow *new_win)
Definition ewmh.c:1701
bool EwmhHasBorder(TwmWindow *twm_win)
Definition ewmh.c:1876
bool EwmhOnWindowRing(TwmWindow *twm_win)
Definition ewmh.c:1898
void EwmhSet_NET_WM_DESKTOP(TwmWindow *twm_win)
Definition ewmh.c:1469
void EwmhDeleteClientWindow(TwmWindow *old_win)
Definition ewmh.c:1738
void EwmhInit(void)
Definition ewmh.c:132
void EwmhGetProperties(TwmWindow *twm_win)
Definition ewmh.c:1842
void EwmhSet_NET_ACTIVE_WINDOW(Window w)
Definition ewmh.c:1823
bool EwmhHasTitle(TwmWindow *twm_win)
Definition ewmh.c:1887
struct EwmhStrut EwmhStrut
void EwmhSet_NET_WM_STATE(TwmWindow *twm_win, int changes)
Definition ewmh.c:2137
Image * EwmhGetIcon(ScreenInfo *scr, TwmWindow *twm_win)
Definition ewmh.c:637
void EwmhSet_NET_CLIENT_LIST_STACKING(void)
Definition ewmh.c:1782
int EwmhGetOccupation(TwmWindow *twm_win)
Definition ewmh.c:1602
int left
Definition ewmh.h:29
struct EwmhStrut * next
Definition ewmh.h:26
int right
Definition ewmh.h:30
struct TwmWindow * win
Definition ewmh.h:27
int bottom
Definition ewmh.h:32
int top
Definition ewmh.h:31
Definition image.h:9
Info and control for each X Screen we control.
Definition screen.h:96
Info and control for every X Window we take over.
Window w
The actual X Window handle.