CTWM
|
#include "ctwm.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <X11/Xatom.h>
#include "ctwm_atoms.h"
#include "util.h"
#include "animate.h"
#include "screen.h"
#include "add_window.h"
#include "events.h"
#include "otp.h"
#include "cursor.h"
#include "image.h"
#include "drawing.h"
#include "list.h"
#include "occupation.h"
#include "vscreen.h"
#include "win_decorations.h"
#include "win_iconify.h"
#include "win_ops.h"
#include "win_utils.h"
#include "workspace_manager.h"
#include "workspace_utils.h"
#include "xparsegeometry.h"
#include "gram.tab.h"
Go to the source code of this file.
Variables | |
bool | useBackgroundInfo |
static XContext | MapWListContext = None |
static Cursor | handCursor = None |
void ConfigureWorkSpaceManager | ( | ScreenInfo * | scr | ) |
Prep up structures for WSM windows in each VS.
Called (for each Screen) in startup after InitVirtualScreens() has setup the VS stuff (and after config file processing). This also retrieves info for each vs about which workspace is active, if available (from restarting ourself, etc).
XXX Passed param isn't quite complete, as we call some funcs that use global Scr...
Definition at line 91 of file workspace_manager.c.
References CtwmGetVScreenMap(), WorkSpaceWindow::currentwspc, dpy, GetWorkspace(), WorkSpaceMgr::initialstate, WorkSpace::next, PlaceX, Scr, WorkSpaceWindow::state, ScreenInfo::vScreenList, and ScreenInfo::workSpaceMgr.
Referenced by ctwm_main().
Definition at line 155 of file workspace_manager.c.
References CreateWorkSpaceManagerWindow(), WorkSpaceWindow::currentwspc, dpy, GetPropertyFromMask(), GetShadeColors(), handCursor, len, WorkSpaceWindow::mswl, NewFontCursor(), PlaceX, Scr, and useBackgroundInfo.
Referenced by ctwm_main().
|
static |
Definition at line 254 of file workspace_manager.c.
References AddWindow(), AWT_WORKSPACE_MANAGER, WorkSpaceWindow::bswl, dpy, MyFont::font_set, fullOccupation, VirtualScreen::h, WorkSpaceWindow::height, WorkSpaceWindow::mswl, PlaceX, ResizeWorkSpaceManager(), RLayoutXParseGeometry(), Scr, ScreenContext, SetMapStateProp(), WorkSpaceWindow::state, WorkSpaceWindow::twm_win, TwmContext, useBackgroundInfo, VirtualScreen::w, MapSubwindow::w, ButtonSubwindow::w, WorkSpaceWindow::w, WorkSpaceWindow::width, WMS_buttons, VirtualScreen::wsw, x, and y.
Referenced by CreateWorkSpaceManager().
Definition at line 72 of file workspace_manager.c.
References MapWListContext, and PlaceX.
Referenced by ctwm_main().
Definition at line 2306 of file workspace_manager.c.
References ColorPair::back, ColorPair::fore, PlaceX, ColorPair::shadc, and ColorPair::shadd.
Referenced by WMapRedrawName().
void PaintWorkSpaceManager | ( | VirtualScreen * | vs | ) |
Definition at line 678 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpaceWindow::currentwspc, off, on, PaintWorkSpaceManagerBorder(), PaintWsButton(), PlaceX, Scr, ButtonSubwindow::w, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by PaintAllDecoration(), and ResizeWorkSpaceManager().
|
static |
Definition at line 700 of file workspace_manager.c.
References Draw3DBorder(), WorkSpaceWindow::height, off, Scr, WorkSpaceWindow::w, WorkSpaceWindow::width, and VirtualScreen::wsw.
Referenced by PaintWorkSpaceManager(), and WMgrHandleExposeEvent().
|
static |
Definition at line 589 of file workspace_manager.c.
References TwmWindow::attr, WorkSpaceWindow::bheight, WorkSpaceWindow::bswl, WorkSpaceWindow::bwidth, dpy, VirtualScreen::h, WorkSpaceWindow::height, WorkSpaceWindow::mswl, PaintWorkSpaceManager(), PlaceX, Scr, VirtualScreen::w, WorkSpaceWindow::wheight, WorkSpaceWindow::width, VirtualScreen::wsw, and WorkSpaceWindow::wwidth.
Referenced by CreateWorkSpaceManagerWindow(), and WMapSetupWindow().
Definition at line 1663 of file workspace_manager.c.
References dpy, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, PlaceX, Scr, winList::twm_win, winList::w, MapSubwindow::wl, WMapRedrawName(), and VirtualScreen::wsw.
Referenced by WMapDeIconify(), and WMapMapWindow().
Definition at line 2099 of file workspace_manager.c.
References OCCUPY, PlaceX, Scr, WMapAddWindowToWorkspace(), and WMapWindowMayBeAdded().
Referenced by AddWindow().
Definition at line 2123 of file workspace_manager.c.
References ColorPair::back, TwmWindow::class, winList::cp, dpy, ColorPair::fore, TwmWindow::frame_height, TwmWindow::frame_width, TwmWindow::frame_x, TwmWindow::frame_y, GetColorFromList(), GetShadeColors(), handCursor, winList::height, TwmWindow::mapped, MapWListContext, TwmWindow::name, winList::next, PlaceX, Scr, ScreenContext, TwmWindow::title, winList::twm_win, TwmContext, winList::w, winList::width, winList::wlist, winList::x, and winList::y.
Referenced by ChangeOccupation(), and WMapAddWindow().
Definition at line 1718 of file workspace_manager.c.
References TwmWindow::vs, and wmap_mapwin_backend().
Referenced by ReMapOne().
Definition at line 1735 of file workspace_manager.c.
References dpy, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, PlaceX, Scr, winList::twm_win, TwmWindow::vs, winList::w, MapSubwindow::wl, and VirtualScreen::wsw.
Referenced by Iconify(), and UnmapTransients().
Definition at line 1864 of file workspace_manager.c.
References WMapRaiseLower().
Referenced by AutoLowerWindow(), f_lower_impl(), and f_tinylower_impl().
Definition at line 1704 of file workspace_manager.c.
References wmap_mapwin_backend().
Referenced by HandleMapRequest().
Definition at line 1870 of file workspace_manager.c.
References WMapRaiseLower().
Referenced by AutoRaiseWindow(), EndResize(), f_tinyraise_impl(), HandleButtonPress(), raise_handler(), and WMgrHandleButtonEvent().
Definition at line 1852 of file workspace_manager.c.
References OCCUPY, PlaceX, Scr, and WMapRestack().
Referenced by f_raiselower_impl(), WMapLower(), and WMapRaise().
void WMapRedrawName | ( | VirtualScreen * | vs, |
WinList * | wl ) |
Definition at line 1997 of file workspace_manager.c.
References winList::cp, WorkSpaceWindow::currentwspc, winList::height, TwmWindow::icon_name, InvertColorPair(), Scr, winList::twm_win, winList::w, winList::width, winList::wlist, WMapRedrawWindow(), and VirtualScreen::wsw.
Referenced by GotoWorkSpace(), wmap_mapwin_backend(), WMapUpdateIconName(), WMgrHandleButtonEvent(), and WMgrHandleExposeEvent().
|
static |
Definition at line 2018 of file workspace_manager.c.
References ColorPair::back, dpy, Draw3DBorder(), FB, MyFont::font_set, ColorPair::fore, off, PlaceX, Scr, x, and y.
Referenced by WMapRedrawName(), and WMgrHandleButtonEvent().
Definition at line 2224 of file workspace_manager.c.
References dpy, OCCUPY, occupyWin, PlaceX, Scr, and WMapRemoveWindowFromWorkspace().
Referenced by HandleDestroyNotify().
Definition at line 2259 of file workspace_manager.c.
References dpy, MapWListContext, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, PlaceX, Scr, ScreenContext, TwmContext, MapSubwindow::wl, and VirtualScreen::wsw.
Referenced by ChangeOccupation(), and WMapRemoveWindow().
Definition at line 1884 of file workspace_manager.c.
References dpy, TwmWindow::frame, GetTwmWindow(), winList::next, OCCUPY, PlaceX, root, Scr, tracefile, winList::twm_win, and winList::w.
Referenced by WMapRaiseLower(), and WMgrHandleButtonEvent().
Definition at line 1762 of file workspace_manager.c.
References dpy, VirtualScreen::h, TwmWindow::isiconmgr, TwmWindow::iswspmgr, WorkSpaceWindow::mswl, VirtualScreen::next, PlaceX, ResizeOccupyWindow(), ResizeWorkSpaceManager(), Scr, TwmWindow::vs, VirtualScreen::w, WorkSpaceWindow::wheight, VirtualScreen::wsw, WorkSpaceWindow::wwidth, x, MapSubwindow::x, and y.
Referenced by movewindow(), SetupFrame(), and WMgrHandleButtonEvent().
Definition at line 1973 of file workspace_manager.c.
References WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, PlaceX, Scr, winList::twm_win, MapSubwindow::wl, WMapRedrawName(), and VirtualScreen::wsw.
Referenced by RedoIcon(), and RedoIconName().
Definition at line 2328 of file workspace_manager.c.
References fullOccupation, TwmWindow::isiconmgr, TwmWindow::iswspmgr, TwmWindow::occupation, and Scr.
Referenced by ChangeOccupation(), and WMapAddWindow().
void WMgrHandleButtonEvent | ( | VirtualScreen * | vs, |
XEvent * | event ) |
Definition at line 949 of file workspace_manager.c.
References ColorPair::back, WorkSpaceWindow::bswl, ChangeOccupation(), cont, winList::cp, WorkSpaceWindow::currentwspc, DispatchEvent(), DisplayWin(), dpy, Event, TwmWindow::frame, TwmWindow::frame_bw, TwmWindow::frame_bw3D, TwmWindow::frame_height, TwmWindow::frame_width, TwmWindow::frame_x, TwmWindow::frame_y, GotoWorkSpace(), VirtualScreen::h, winList::height, TwmWindow::icon_name, TwmWindow::istransient, JunkDepth, MapWListContext, MoveOutline(), WorkSpaceWindow::mswl, TwmWindow::occupation, OCCUPY, TwmWindow::OpaqueMove, OtpRaise(), PlaceX, Scr, SetupWindow(), WorkSpaceWindow::state, TwmWindow::title_height, winList::twm_win, Vanish(), VirtualScreen::w, MapSubwindow::w, ButtonSubwindow::w, WarpToWindow(), winList::width, WinWin, WMapRaise(), WMapRedrawName(), WMapRedrawWindow(), WMapRestack(), WMapSetupWindow(), WMgrToggleState(), WMS_buttons, and VirtualScreen::wsw.
Referenced by HandleButtonPress().
void WMgrHandleExposeEvent | ( | VirtualScreen * | vs, |
XEvent * | event ) |
Definition at line 716 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpaceWindow::currentwspc, dpy, TwmWindow::mapped, MapWListContext, off, on, PaintWorkSpaceManagerBorder(), PaintWsButton(), PlaceX, Scr, WorkSpaceWindow::state, winList::twm_win, ButtonSubwindow::w, WMapRedrawName(), WMS_buttons, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by HandleExpose().
void WMgrHandleKeyPressEvent | ( | VirtualScreen * | vs, |
XEvent * | event ) |
Definition at line 840 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpaceWindow::currentwspc, off, on, PaintWsButton(), PlaceX, Scr, WorkSpaceWindow::state, ButtonSubwindow::w, WMgrToggleState(), WMS_map, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by HandleKeyPress().
void WMgrHandleKeyReleaseEvent | ( | VirtualScreen * | vs, |
XEvent * | event ) |
Definition at line 822 of file workspace_manager.c.
References PlaceX, Scr, and WMgrToggleState().
Referenced by HandleKeyRelease().
void WMgrSetButtonsState | ( | VirtualScreen * | vs | ) |
Definition at line 790 of file workspace_manager.c.
References WorkSpaceWindow::bswl, dpy, WorkSpaceWindow::mswl, PlaceX, Scr, WorkSpaceWindow::state, MapSubwindow::w, ButtonSubwindow::w, WMS_buttons, and VirtualScreen::wsw.
Referenced by f_setbuttonsstate_impl(), and WMgrToggleState().
void WMgrSetMapState | ( | VirtualScreen * | vs | ) |
Definition at line 774 of file workspace_manager.c.
References WorkSpaceWindow::bswl, dpy, MaybeAnimate, WorkSpaceWindow::mswl, PlaceX, Scr, WorkSpaceWindow::state, MapSubwindow::w, ButtonSubwindow::w, WMS_map, and VirtualScreen::wsw.
Referenced by f_setmapstate_impl(), and WMgrToggleState().
void WMgrToggleState | ( | VirtualScreen * | vs | ) |
Definition at line 763 of file workspace_manager.c.
References WorkSpaceWindow::state, WMgrSetButtonsState(), WMgrSetMapState(), WMS_buttons, and VirtualScreen::wsw.
Referenced by f_togglestate_impl(), WMgrHandleButtonEvent(), WMgrHandleKeyPressEvent(), and WMgrHandleKeyReleaseEvent().
Definition at line 55 of file workspace_manager.c.
Referenced by CreateWorkSpaceManager(), and WMapAddWindowToWorkspace().
Definition at line 54 of file workspace_manager.c.
Referenced by InitWorkSpaceManagerContext(), WMapAddWindowToWorkspace(), WMapRemoveWindowFromWorkspace(), WMgrHandleButtonEvent(), and WMgrHandleExposeEvent().
|
extern |
Definition at line 37 of file workspace_utils.c.
Referenced by CreateWorkSpaceManager(), CreateWorkSpaceManagerWindow(), and GotoWorkSpace().