|
CTWM
|
#include "ctwm.h"#include <stdio.h>#include <stdlib.h>#include <time.h>#include <stdint.h>#include <assert.h>#include <X11/Xatom.h>#include <X11/extensions/shape.h>#include "ctwm_atoms.h"#include "ctwm_shutdown.h"#include "ewmh_atoms.h"#include "screen.h"#include "events.h"#include "event_handlers.h"#include "functions_defs.h"#include "icons.h"#include "otp.h"#include "image.h"#include "list.h"#include "functions.h"#include "occupation.h"#include "r_layout.h"#include "util.h"#include "vscreen.h"#include "win_iconify.h"#include "win_ops.h"#include "win_resize.h"#include "win_utils.h"#include "workspace_utils.h"Go to the source code of this file.
Macros | |
| #define | NET_WM_STATE_REMOVE 0 |
| #define | NET_WM_STATE_ADD 1 |
| #define | NET_WM_STATE_TOGGLE 2 |
| #define | _NET_WM_MOVERESIZE_SIZE_TOPLEFT 0 |
| #define | _NET_WM_MOVERESIZE_SIZE_TOP 1 |
| #define | _NET_WM_MOVERESIZE_SIZE_TOPRIGHT 2 |
| #define | _NET_WM_MOVERESIZE_SIZE_RIGHT 3 |
| #define | _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT 4 |
| #define | _NET_WM_MOVERESIZE_SIZE_BOTTOM 5 |
| #define | _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT 6 |
| #define | _NET_WM_MOVERESIZE_SIZE_LEFT 7 |
| #define | _NET_WM_MOVERESIZE_MOVE 8 |
| #define | _NET_WM_MOVERESIZE_SIZE_KEYBOARD 9 |
| #define | _NET_WM_MOVERESIZE_MOVE_KEYBOARD 10 |
| #define | _NET_WM_MOVERESIZE_CANCEL 11 |
| #define | ALL_WORKSPACES 0xFFFFFFFFU |
| #define | CRWARN(x) |
| #define | CHKNRET(st) |
| #define | DOBIT(fld) |
Functions | |
| static Image * | ExtractIcon (ScreenInfo *scr, unsigned long *prop, int width, int height) |
| static void | EwmhClientMessage_NET_WM_DESKTOP (XClientMessageEvent *msg) |
| static void | EwmhClientMessage_NET_WM_STATE (XClientMessageEvent *msg) |
| static void | EwmhClientMessage_NET_ACTIVE_WINDOW (XClientMessageEvent *msg) |
| static void | EwmhClientMessage_NET_WM_MOVERESIZE (XClientMessageEvent *msg) |
| static void | EwmhClientMessage_NET_CLOSE_WINDOW (XClientMessageEvent *msg) |
| static XEvent | synth_btnevent_for_moveresize (TwmWindow *twm_win) |
| static unsigned long | EwmhGetWindowProperty (Window w, Atom name, Atom type) |
| static void | EwmhGetStrut (TwmWindow *twm_win, bool update) |
| static void | EwmhRemoveStrut (TwmWindow *twm_win) |
| static void | EwmhSet_NET_WORKAREA (ScreenInfo *scr) |
| static int | EwmhGet_NET_WM_STATE (TwmWindow *twm_win) |
| static void | EwmhClientMessage_NET_WM_STATEchange (TwmWindow *twm_win, int change, int newVal) |
| static void | SendPropertyMessage (Window to, Window about, Atom messagetype, long l0, long l1, long l2, long l3, long l4, long mask) |
| static void | EwmhInitAtoms (void) |
| static int | CatchError (Display *display, XErrorEvent *event) |
| void | EwmhInit (void) |
| static void | GenerateTimestamp (ScreenInfo *scr) |
| static bool | EwmhReplaceWM (ScreenInfo *scr) |
| bool | EwmhInitScreenEarly (ScreenInfo *scr) |
| void | EwmhInitScreenLate (ScreenInfo *scr) |
| static void | EwmhTerminateScreen (ScreenInfo *scr) |
| void | EwmhTerminate (void) |
| void | EwmhSelectionClear (XSelectionClearEvent *sev) |
| bool | EwmhClientMessage (XClientMessageEvent *msg) |
| Image * | EwmhGetIcon (ScreenInfo *scr, TwmWindow *twm_win) |
| static void | convert_for_16 (int w, int x, int y, int argb) |
| static void | convert_for_32 (int w, int x, int y, int argb) |
| static void | EwmhHandle_NET_WM_ICONNotify (XPropertyEvent *event, TwmWindow *twm_win) |
| static void | EwmhHandle_NET_WM_STRUTNotify (XPropertyEvent *event, TwmWindow *twm_win) |
| static int | atomToFlag (Atom a) |
| int | EwmhHandlePropertyNotify (XPropertyEvent *event, TwmWindow *twm_win) |
| void | EwmhSet_NET_WM_DESKTOP (TwmWindow *twm_win) |
| void | EwmhSet_NET_WM_DESKTOP_ws (TwmWindow *twm_win, WorkSpace *ws) |
| static unsigned long * | EwmhGetWindowProperties (Window w, Atom name, Atom type, unsigned long *nitems_return) |
| int | EwmhGetOccupation (TwmWindow *twm_win) |
| void | EwmhUnmapNotify (TwmWindow *twm_win) |
| void | EwmhAddClientWindow (TwmWindow *new_win) |
| void | EwmhDeleteClientWindow (TwmWindow *old_win) |
| void | EwmhSet_NET_CLIENT_LIST_STACKING (void) |
| void | EwmhSet_NET_ACTIVE_WINDOW (Window w) |
| void | EwmhGetProperties (TwmWindow *twm_win) |
| int | EwmhGetInitPriority (TwmWindow *twm_win) |
| bool | EwmhHasBorder (TwmWindow *twm_win) |
| bool | EwmhHasTitle (TwmWindow *twm_win) |
| bool | EwmhOnWindowRing (TwmWindow *twm_win) |
| static void | EwmhRecalculateStrut (void) |
| void | EwmhSet_NET_FRAME_EXTENTS (TwmWindow *twm_win) |
| Set _NET_FRAME_EXTENTS property. | |
| void | EwmhSet_NET_SHOWING_DESKTOP (int state) |
| void | EwmhSet_NET_WM_STATE (TwmWindow *twm_win, int changes) |
Variables | |
| Atom | XEWMHAtom [NUM_EWMH_XATOMS] |
| static bool | caughtError |
| static uint16_t * | buffer_16bpp |
| static uint32_t * | buffer_32bpp |
| #define _NET_WM_MOVERESIZE_CANCEL 11 |
Definition at line 78 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_MOVE 8 |
Definition at line 75 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_MOVE_KEYBOARD 10 |
Definition at line 77 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_BOTTOM 5 |
Definition at line 72 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT 6 |
Definition at line 73 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT 4 |
Definition at line 71 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_KEYBOARD 9 |
Definition at line 76 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_LEFT 7 |
Definition at line 74 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_RIGHT 3 |
Definition at line 70 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_TOP 1 |
Definition at line 68 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_TOPLEFT 0 |
Definition at line 67 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define _NET_WM_MOVERESIZE_SIZE_TOPRIGHT 2 |
Definition at line 69 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE().
| #define ALL_WORKSPACES 0xFFFFFFFFU |
Definition at line 96 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_DESKTOP(), EwmhGetOccupation(), and EwmhSet_NET_WM_DESKTOP_ws().
| #define CHKNRET | ( | st | ) |
Referenced by atomToFlag().
| #define CRWARN | ( | x | ) |
| #define DOBIT | ( | fld | ) |
Referenced by EwmhClientMessage_NET_WM_STATEchange().
| #define NET_WM_STATE_ADD 1 |
Definition at line 64 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_STATE().
| #define NET_WM_STATE_REMOVE 0 |
Definition at line 63 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_STATE().
| #define NET_WM_STATE_TOGGLE 2 |
Definition at line 65 of file ewmh.c.
Referenced by EwmhClientMessage_NET_WM_STATE().
|
static |
Definition at line 1027 of file ewmh.c.
References atomToFlag(), and CHKNRET.
Referenced by atomToFlag(), EwmhClientMessage_NET_WM_STATE(), and EwmhGet_NET_WM_STATE().
|
static |
Definition at line 126 of file ewmh.c.
References CatchError(), and caughtError.
Referenced by CatchError(), and EwmhReplaceWM().
|
static |
Definition at line 838 of file ewmh.c.
References buffer_16bpp, and convert_for_16().
Referenced by convert_for_16(), convert_for_16(), ExtractIcon(), and LoadJpegImage().
|
static |
Definition at line 846 of file ewmh.c.
References buffer_32bpp, and convert_for_32().
Referenced by convert_for_32(), convert_for_32(), ExtractIcon(), and LoadJpegImage().
| void EwmhAddClientWindow | ( | TwmWindow * | new_win | ) |
Definition at line 1701 of file ewmh.c.
References dpy, EwmhAddClientWindow(), TwmWindow::iconmanagerlist, TwmWindow::isiconmgr, TwmWindow::iswspmgr, Scr, and TwmWindow::w.
Referenced by EwmhAddClientWindow(), and HandleMapRequest().
| bool EwmhClientMessage | ( | XClientMessageEvent * | msg | ) |
Definition at line 561 of file ewmh.c.
References dpy, EwmhClientMessage(), EwmhClientMessage_NET_ACTIVE_WINDOW(), EwmhClientMessage_NET_CLOSE_WINDOW(), EwmhClientMessage_NET_WM_DESKTOP(), EwmhClientMessage_NET_WM_MOVERESIZE(), EwmhClientMessage_NET_WM_STATE(), GotoWorkSpaceByNumber(), Scr, and ShowBackground().
Referenced by EwmhClientMessage(), and HandleClientMessage().
|
static |
Definition at line 1227 of file ewmh.c.
References AutoRaiseWindow(), DeIconify(), EwmhClientMessage_NET_ACTIVE_WINDOW(), GetTwmWindow(), TwmWindow::mapped, Scr, SetFocus(), and WarpToWindow().
Referenced by EwmhClientMessage(), and EwmhClientMessage_NET_ACTIVE_WINDOW().
|
static |
Definition at line 1387 of file ewmh.c.
References ButtonPressed, C_NO_CONTEXT, EwmhClientMessage_NET_CLOSE_WINDOW(), ExecuteFunction(), and GetTwmWindow().
Referenced by EwmhClientMessage(), and EwmhClientMessage_NET_CLOSE_WINDOW().
|
static |
Definition at line 1648 of file ewmh.c.
References ALL_WORKSPACES, ChangeOccupation(), WorkSpaceWindow::currentwspc, EwmhClientMessage_NET_WM_DESKTOP(), fullOccupation, GetTwmWindow(), WorkSpace::number, TwmWindow::occupation, Scr, TwmWindow::vs, and VirtualScreen::wsw.
Referenced by EwmhClientMessage(), and EwmhClientMessage_NET_WM_DESKTOP().
|
static |
Definition at line 1269 of file ewmh.c.
References _NET_WM_MOVERESIZE_CANCEL, _NET_WM_MOVERESIZE_MOVE, _NET_WM_MOVERESIZE_MOVE_KEYBOARD, _NET_WM_MOVERESIZE_SIZE_BOTTOM, _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT, _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT, _NET_WM_MOVERESIZE_SIZE_KEYBOARD, _NET_WM_MOVERESIZE_SIZE_LEFT, _NET_WM_MOVERESIZE_SIZE_RIGHT, _NET_WM_MOVERESIZE_SIZE_TOP, _NET_WM_MOVERESIZE_SIZE_TOPLEFT, _NET_WM_MOVERESIZE_SIZE_TOPRIGHT, C_WINDOW, DeIconify(), EwmhClientMessage_NET_WM_MOVERESIZE(), ExecuteFunction(), TwmWindow::frame, GetTwmWindow(), TwmWindow::mapped, and synth_btnevent_for_moveresize().
Referenced by EwmhClientMessage(), and EwmhClientMessage_NET_WM_MOVERESIZE().
|
static |
Definition at line 1066 of file ewmh.c.
References atomToFlag(), dpy, EWMH_STATE_MAXIMIZED_HORZ, EWMH_STATE_MAXIMIZED_VERT, EwmhClientMessage_NET_WM_STATE(), EwmhClientMessage_NET_WM_STATEchange(), GetTwmWindow(), NET_WM_STATE_ADD, NET_WM_STATE_REMOVE, and NET_WM_STATE_TOGGLE.
Referenced by EwmhClientMessage(), and EwmhClientMessage_NET_WM_STATE().
|
static |
Definition at line 1144 of file ewmh.c.
References DOBIT, EWMH_STATE_ABOVE, EWMH_STATE_BELOW, EWMH_STATE_FULLSCREEN, EWMH_STATE_MAXIMIZED_HORZ, EWMH_STATE_MAXIMIZED_VERT, EWMH_STATE_SHADED, EwmhClientMessage_NET_WM_STATEchange(), EwmhSet_NET_WM_STATE(), fullzoom(), OtpEffectivePriority(), OtpRestackWindow(), OtpSetAflagMask(), Squeeze(), ZOOM_NONE, and TwmWindow::zoomed.
Referenced by EwmhClientMessage_NET_WM_STATE(), and EwmhClientMessage_NET_WM_STATEchange().
| void EwmhDeleteClientWindow | ( | TwmWindow * | old_win | ) |
Definition at line 1738 of file ewmh.c.
References dpy, EWMH_HAS_STRUT, EwmhDeleteClientWindow(), EwmhRemoveStrut(), Scr, and TwmWindow::w.
Referenced by EwmhDeleteClientWindow(), and HandleDestroyNotify().
|
static |
Definition at line 2237 of file ewmh.c.
References atomToFlag(), EwmhGet_NET_WM_STATE(), EwmhGetWindowProperties(), and TwmWindow::w.
Referenced by EwmhGet_NET_WM_STATE(), and EwmhGetProperties().
| Image * EwmhGetIcon | ( | ScreenInfo * | scr, |
| TwmWindow * | twm_win ) |
Definition at line 637 of file ewmh.c.
References ALLOW_DEAD_STORE, dpy, EwmhGetIcon(), ExtractIcon(), Scr, and TwmWindow::w.
Referenced by CreateIconWindow(), EwmhGetIcon(), and EwmhHandle_NET_WM_ICONNotify().
| int EwmhGetInitPriority | ( | TwmWindow * | twm_win | ) |
Definition at line 1864 of file ewmh.c.
References EWMH_PRI_DESKTOP, EWMH_PRI_DOCK, EwmhGetInitPriority(), wt_Desktop, and wt_Dock.
Referenced by AddNewOwl(), and EwmhGetInitPriority().
| int EwmhGetOccupation | ( | TwmWindow * | twm_win | ) |
Definition at line 1602 of file ewmh.c.
References ALL_WORKSPACES, EwmhGetOccupation(), EwmhGetWindowProperties(), fullOccupation, Scr, and TwmWindow::w.
Referenced by EwmhGetOccupation(), and SetupOccupation().
| void EwmhGetProperties | ( | TwmWindow * | twm_win | ) |
Definition at line 1842 of file ewmh.c.
References EWMH_STATE_ABOVE, EWMH_STATE_BELOW, EWMH_STATE_SHADED, EwmhGet_NET_WM_STATE(), EwmhGetProperties(), EwmhGetStrut(), EwmhGetWindowProperty(), TwmWindow::w, wt_Desktop, wt_Dock, and wt_Normal.
Referenced by AddWindow(), and EwmhGetProperties().
|
static |
Definition at line 1957 of file ewmh.c.
References EwmhStrut::bottom, EWMH_HAS_STRUT, EwmhGetStrut(), EwmhGetWindowProperties(), EwmhRecalculateStrut(), EwmhStrut::left, EwmhStrut::next, EwmhStrut::right, Scr, EwmhStrut::top, TwmWindow::w, and EwmhStrut::win.
Referenced by EwmhGetProperties(), EwmhGetStrut(), and EwmhHandle_NET_WM_STRUTNotify().
|
static |
Definition at line 1577 of file ewmh.c.
References dpy, and EwmhGetWindowProperties().
Referenced by EwmhGet_NET_WM_STATE(), EwmhGetOccupation(), EwmhGetStrut(), and EwmhGetWindowProperties().
|
static |
Definition at line 1541 of file ewmh.c.
References dpy, and EwmhGetWindowProperty().
Referenced by EwmhGetProperties(), and EwmhGetWindowProperty().
|
static |
Definition at line 947 of file ewmh.c.
References Icon::bm_w, dpy, EwmhGetIcon(), EwmhHandle_NET_WM_ICONNotify(), FreeImage(), GetIconOffset(), Icon::height, TwmWindow::icon, Icon::image, Image::mask, Icon::match, match_net_wm_icon, Image::pixmap, RedoIconName(), Scr, Icon::w, and Icon::width.
Referenced by EwmhHandle_NET_WM_ICONNotify(), and EwmhHandlePropertyNotify().
|
static |
Definition at line 1018 of file ewmh.c.
References EwmhGetStrut(), and EwmhHandle_NET_WM_STRUTNotify().
Referenced by EwmhHandle_NET_WM_STRUTNotify(), and EwmhHandlePropertyNotify().
| int EwmhHandlePropertyNotify | ( | XPropertyEvent * | event, |
| TwmWindow * | twm_win ) |
Definition at line 1403 of file ewmh.c.
References apply_window_icon_name(), apply_window_name(), EwmhHandle_NET_WM_ICONNotify(), EwmhHandle_NET_WM_STRUTNotify(), EwmhHandlePropertyNotify(), FreeWMPropertyString(), GetWMPropertyString(), TwmWindow::names, and TwmWindow::w.
Referenced by EwmhHandlePropertyNotify(), and HandlePropertyNotify().
| bool EwmhHasBorder | ( | TwmWindow * | twm_win | ) |
Definition at line 1876 of file ewmh.c.
References EwmhHasBorder(), wt_Desktop, and wt_Dock.
Referenced by AddWindow(), and EwmhHasBorder().
| bool EwmhHasTitle | ( | TwmWindow * | twm_win | ) |
Definition at line 1887 of file ewmh.c.
References EwmhHasTitle(), wt_Desktop, and wt_Dock.
Referenced by AddWindow(), and EwmhHasTitle().
| void EwmhInit | ( | void | ) |
Definition at line 132 of file ewmh.c.
References EwmhInit(), and EwmhInitAtoms().
Referenced by ctwm_main(), and EwmhInit().
|
static |
Definition at line 119 of file ewmh.c.
References dpy, EwmhInitAtoms(), and XEWMHAtom.
Referenced by EwmhInit(), and EwmhInitAtoms().
| bool EwmhInitScreenEarly | ( | ScreenInfo * | scr | ) |
Definition at line 307 of file ewmh.c.
References dpy, EwmhInitScreenEarly(), EwmhReplaceWM(), and ScreenInfo::XineramaRoot.
Referenced by EwmhInitScreenEarly(), and takeover_screen().
| void EwmhInitScreenLate | ( | ScreenInfo * | scr | ) |
Definition at line 349 of file ewmh.c.
References WorkSpaceMgr::count, dpy, EwmhInitScreenLate(), EwmhSet_NET_SHOWING_DESKTOP(), EwmhSet_NET_WORKAREA(), ScreenInfo::rooth, ScreenInfo::rootw, ScreenInfo::workSpaceManagerActive, ScreenInfo::workSpaceMgr, and ScreenInfo::XineramaRoot.
Referenced by ctwm_main(), and EwmhInitScreenLate().
| bool EwmhOnWindowRing | ( | TwmWindow * | twm_win | ) |
Definition at line 1898 of file ewmh.c.
References EwmhOnWindowRing(), wt_Desktop, and wt_Dock.
Referenced by AddWindow(), and EwmhOnWindowRing().
|
static |
Definition at line 1915 of file ewmh.c.
References EwmhStrut::bottom, EwmhRecalculateStrut(), EwmhSet_NET_WORKAREA(), EwmhStrut::left, EwmhStrut::next, EwmhStrut::right, RLayoutCopyCropped(), Scr, and EwmhStrut::top.
Referenced by EwmhGetStrut(), EwmhRecalculateStrut(), and EwmhRemoveStrut().
|
static |
Definition at line 2069 of file ewmh.c.
References EWMH_HAS_STRUT, EwmhRecalculateStrut(), EwmhRemoveStrut(), EwmhStrut::next, Scr, and EwmhStrut::win.
Referenced by EwmhDeleteClientWindow(), and EwmhRemoveStrut().
|
static |
Definition at line 194 of file ewmh.c.
References CatchError(), caughtError, CLarg, dpy, EventTime, EwmhReplaceWM(), GenerateTimestamp(), ScreenInfo::screen, SendPropertyMessage(), and ScreenInfo::XineramaRoot.
Referenced by EwmhInitScreenEarly(), and EwmhReplaceWM().
| void EwmhSelectionClear | ( | XSelectionClearEvent * | sev | ) |
Definition at line 546 of file ewmh.c.
References DoShutdown(), and EwmhSelectionClear().
Referenced by EwmhSelectionClear().
| void EwmhSet_NET_ACTIVE_WINDOW | ( | Window | w | ) |
Definition at line 1823 of file ewmh.c.
References dpy, EwmhSet_NET_ACTIVE_WINDOW(), and Scr.
Referenced by EwmhSet_NET_ACTIVE_WINDOW(), and SetFocus().
| void EwmhSet_NET_CLIENT_LIST_STACKING | ( | void | ) |
Definition at line 1782 of file ewmh.c.
References dpy, EwmhSet_NET_CLIENT_LIST_STACKING(), TwmWindow::iconmanagerlist, TwmWindow::isiconmgr, TwmWindow::iswspmgr, OtpBottomWin(), OtpNextWinUp(), Scr, and TwmWindow::w.
Referenced by EwmhSet_NET_CLIENT_LIST_STACKING(), HandleDestroyNotify(), HandleMapRequest(), OtpLower(), OtpRaise(), OtpRaiseLower(), OtpTinyLower(), and OtpTinyRaise().
| void EwmhSet_NET_FRAME_EXTENTS | ( | TwmWindow * | twm_win | ) |
Set _NET_FRAME_EXTENTS property.
This tells the client how much space is being taken up by the window decorations. Some clients may need this information to position other windows on top of themselves. e.g., Firefox's form autofill and context menu will be positioned a bit wrong (high, by the height of the titlebar) without this.
Definition at line 2099 of file ewmh.c.
References dpy, EwmhSet_NET_FRAME_EXTENTS(), TwmWindow::frame_bw, TwmWindow::frame_bw3D, TwmWindow::title_height, and TwmWindow::w.
Referenced by AddWindow(), and EwmhSet_NET_FRAME_EXTENTS().
| void EwmhSet_NET_SHOWING_DESKTOP | ( | int | state | ) |
Definition at line 2116 of file ewmh.c.
References dpy, EwmhSet_NET_SHOWING_DESKTOP(), and Scr.
Referenced by EwmhInitScreenLate(), EwmhSet_NET_SHOWING_DESKTOP(), and ShowBackground().
| void EwmhSet_NET_WM_DESKTOP | ( | TwmWindow * | twm_win | ) |
Definition at line 1469 of file ewmh.c.
References WorkSpaceWindow::currentwspc, EwmhSet_NET_WM_DESKTOP(), EwmhSet_NET_WM_DESKTOP_ws(), TwmWindow::vs, and VirtualScreen::wsw.
Referenced by ChangeOccupation(), EwmhSet_NET_WM_DESKTOP(), and SetupOccupation().
Definition at line 1487 of file ewmh.c.
References ALL_WORKSPACES, dpy, EwmhSet_NET_WM_DESKTOP_ws(), fullOccupation, MAXWORKSPACE, WorkSpace::number, TwmWindow::occupation, Scr, and TwmWindow::w.
Referenced by EwmhSet_NET_WM_DESKTOP(), EwmhSet_NET_WM_DESKTOP_ws(), and GotoWorkSpace().
| void EwmhSet_NET_WM_STATE | ( | TwmWindow * | twm_win, |
| int | changes ) |
Definition at line 2137 of file ewmh.c.
References dpy, EWMH_PRI_DESKTOP, EWMH_PRI_DOCK, EWMH_STATE_ABOVE, EWMH_STATE_BELOW, EWMH_STATE_FULLSCREEN, EWMH_STATE_MAXIMIZED_HORZ, EWMH_STATE_MAXIMIZED_VERT, EWMH_STATE_SHADED, EwmhSet_NET_WM_STATE(), OtpEffectiveDisplayPriority(), TwmWindow::squeezed, TwmWindow::w, wt_Desktop, wt_Dock, and TwmWindow::zoomed.
Referenced by EwmhClientMessage_NET_WM_STATEchange(), EwmhSet_NET_WM_STATE(), fullzoom(), HandleMapRequest(), otp_priority_handler(), RecomputeOwlPrefs(), and Squeeze().
|
static |
Definition at line 2260 of file ewmh.c.
References ScreenInfo::BorderBottom, ScreenInfo::BorderLeft, ScreenInfo::BorderRight, ScreenInfo::BorderTop, dpy, EwmhSet_NET_WORKAREA(), ScreenInfo::rooth, ScreenInfo::rootw, and Scr.
Referenced by EwmhInitScreenLate(), EwmhRecalculateStrut(), and EwmhSet_NET_WORKAREA().
| void EwmhTerminate | ( | void | ) |
Definition at line 528 of file ewmh.c.
References EwmhTerminate(), EwmhTerminateScreen(), NumScreens, and ScreenList.
Referenced by DoShutdown(), and EwmhTerminate().
|
static |
Definition at line 512 of file ewmh.c.
References dpy, EwmhTerminateScreen(), and ScreenInfo::XineramaRoot.
Referenced by EwmhTerminate(), and EwmhTerminateScreen().
| void EwmhUnmapNotify | ( | TwmWindow * | twm_win | ) |
Definition at line 1689 of file ewmh.c.
References dpy, EwmhUnmapNotify(), and TwmWindow::w.
Referenced by EwmhUnmapNotify(), and HandleUnmapNotify().
|
static |
XXX sort of duplicated from util.c:LoadJpegImage()
Definition at line 851 of file ewmh.c.
References AllocImage(), buffer_16bpp, buffer_32bpp, convert_for_16(), convert_for_32(), ScreenInfo::d_depth, dpy, ExtractIcon(), Image::height, Image::mask, Image::pixmap, ScreenInfo::Root, ScreenInfo::screen, and Image::width.
Referenced by EwmhGetIcon(), and ExtractIcon().
|
static |
Definition at line 144 of file ewmh.c.
References dpy, EventTime, and GenerateTimestamp().
Referenced by EwmhReplaceWM(), and GenerateTimestamp().
|
static |
Definition at line 98 of file ewmh.c.
References dpy, and SendPropertyMessage().
Referenced by EwmhReplaceWM(), and SendPropertyMessage().
|
static |
Definition at line 1343 of file ewmh.c.
References dpy, EventTime, TwmWindow::frame, TwmWindow::frame_x, TwmWindow::frame_y, TwmWindow::parent_vs, root, synth_btnevent_for_moveresize(), TwmWindow::w, VirtualScreen::window, and MenuRoot::x.
Referenced by EwmhClientMessage_NET_WM_MOVERESIZE(), and synth_btnevent_for_moveresize().
|
static |
Definition at line 835 of file ewmh.c.
Referenced by convert_for_16(), convert_for_16(), ExtractIcon(), and LoadJpegImage().
|
static |
Definition at line 836 of file ewmh.c.
Referenced by convert_for_32(), convert_for_32(), ExtractIcon(), and LoadJpegImage().
|
static |
Definition at line 124 of file ewmh.c.
Referenced by CatchError(), and EwmhReplaceWM().
| Atom XEWMHAtom[NUM_EWMH_XATOMS] |
Definition at line 61 of file ewmh.c.
Referenced by EwmhInitAtoms().