CTWM
|
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <locale.h>
#include <fcntl.h>
#include <X11/Xatom.h>
#include <X11/extensions/shape.h>
#include "ctwm_atoms.h"
#include "ctwm_main.h"
#include "ctwm_takeover.h"
#include "clargs.h"
#include "add_window.h"
#include "gc.h"
#include "parse.h"
#include "version.h"
#include "colormaps.h"
#include "events.h"
#include "util.h"
#include "mask_screen.h"
#include "animate.h"
#include "screen.h"
#include "icons.h"
#include "iconmgr.h"
#include "list.h"
#include "occupation.h"
#include "otp.h"
#include "cursor.h"
#include "r_area.h"
#include "r_area_list.h"
#include "r_layout.h"
#include "signals.h"
#include "vscreen.h"
#include "win_decorations_init.h"
#include "win_ops.h"
#include "win_regions.h"
#include "win_utils.h"
#include "workspace_manager.h"
#include "gram.tab.h"
Go to the source code of this file.
Macros | |
#define | SETFB(fld) Scr->fld.fore = Scr->Black; Scr->fld.back = Scr->White; |
#define | SETDEF(fld, num) if(Scr->fld == -100) { Scr->fld = num; } |
#define | DEFCURSOR(name, val) if(!Scr->name) NewFontCursor(&Scr->name, val) |
#define | Scr StupidProgrammer |
#define | DEFAULT_NICE_FONT "-*-helvetica-bold-r-normal-*-*-120-*" |
#define | DEFAULT_FAST_FONT "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*" |
#define | SETFONT(fld, var) (scr->fld##Font.basename = DEFAULT_##var##_FONT) |
Functions | |
ScreenInfo * | InitScreenInfo (int scrnum, Window croot, int crootx, int crooty, unsigned int crootw, unsigned int crooth) |
Initialize ScreenInfo for a Screen. | |
static bool | MappedNotOverride (Window w) |
Return true if a window is not set to override_redirect ("Hey! WM!
Leave those wins alone!"), and isn't unmapped. | |
int | ctwm_main (int argc, char *argv[]) |
Start up ctwm. | |
#define DEFAULT_FAST_FONT "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*" |
#define Scr StupidProgrammer |
Start up ctwm.
This is effectively main(), just wrapped for various unimportant reasons.
Definition at line 170 of file ctwm_main.c.
References AddToCaptiveList(), AllocateIconManager(), AllocateOtherIconManagers(), appContext, Argc, Argv, assign_var_savecolor(), BottomCursor, BottomLeftCursor, BottomRightCursor, _ctwm_cl_args::cfgchk, cfgerrs, chk_keytable_order(), CLarg, clargs_check(), clargs_parse(), _ctwm_cl_args::client_id, ColormapContext, ConfigureWorkSpaceManager(), ConnectToSessionManager(), CreateColormapWindow(), CreateFonts(), CreateGCs(), CreateIconManagers(), CreateOccupyWindow(), createWindowBoxes(), CreateWindowRegions(), CreateWorkSpaceManager(), ctwm_test, ctwm_test_postparse, DEFCURSOR, _ctwm_cl_args::display_name, dpy, EwmhInit(), EwmhInitScreenLate(), TwmWindow::frame, GetColor(), GetShadeColors(), HandleEvents(), HandlingEvents, HasShape, Home, HomeLen, InitEvents(), _ctwm_cl_args::InitFile, InitScreenInfo(), InitTitlebarButtons(), InitVirtualScreens(), InitWorkSpaceManagerContext(), InstallColormaps(), IRA_UNDEF, IRJ_UNDEF, LeftButt, LeftCursor, LoadTwmrc(), LocateStandardColormaps(), MakeMenus(), MakeWorkspacesMenu(), TwmWindow::mapped, MappedNotOverride(), MaskScreen(), MenuContext, MiddleButt, _ctwm_cl_args::Monochrome, _ctwm_cl_args::MultiScreen, NewFontCursor(), VirtualScreen::next, NoClass, NoName, NumScreens, PlaceX, play_startup_sound(), PreviousScreen, ProgramName, ProgramNameLen, RAreaListNew(), RAreaNewStatic(), ReadWinConfigFile(), RestartPreviousState, _ctwm_cl_args::restore_filename, RightButt, RightCursor, RLayoutCopyCropped(), RLayoutGetAreaIndex(), RLayoutNew(), RLayoutNumMonitors(), RLayoutPrint(), Scr, ScreenContext, ScreenList, SETDEF, SETFB, SetFocus(), SetMapStateProp(), setup_signal_handlers(), ShapeErrorBase, ShapeEventBase, _ctwm_cl_args::ShowWelcomeWindow, SimulateMapRequest(), SIZE_VINDENT, sound_init(), sound_load_list(), Squeeze(), StartAnimation(), TwmWindow::StartSqueezed, takeover_screen(), TJ_UNDEF, TopCursor, TopLeftCursor, TopRightCursor, WorkSpaceWindow::twm_win, TwmContext, UnmaskScreen(), UpperLeftCursor, WorkSpaceWindow::w, VirtualScreen::wsw, RArea::x, XCTWMAtom, XrandrNewLayout(), and RArea::y.
Referenced by main().
ScreenInfo * InitScreenInfo | ( | int | scrnum, |
Window | croot, | ||
int | crootx, | ||
int | crooty, | ||
unsigned int | crootw, | ||
unsigned int | crooth ) |
Initialize ScreenInfo for a Screen.
This allocates the struct, assigns in the info we pass it about the screen and dimensions, and then puts in our various default/fallback/sentinel/etc values to prepare it for later use.
It is intentional that this doesn't do any of the initialization that involves calling out to X functions; it operates as a pure function. This makes it easier to use it to fake up a ScreenInfo for something that isn't actually an X Screen, for testing etc.
scrnum | The Screen number (e.g, :0.0 -> 0) |
croot | The X Window for the Screen's root window |
crootx | Root X coordinate |
crooty | Root Y coordinate |
crootw | Root width |
crooth | Root height |
Definition at line 1112 of file ctwm_main.c.
References ScreenInfo::AlwaysSqueezeToGravity, ScreenInfo::AutoFocusToTransients, ScreenInfo::AutoOccupy, ScreenInfo::AutoRaiseIcons, ScreenInfo::BackingStore, MyFont::basename, ScreenInfo::BeNiceToColormap, ScreenInfo::_TBInfo::border, ScreenInfo::BorderBottom, ScreenInfo::BorderCursors, ScreenInfo::BorderLeft, ScreenInfo::BorderRight, ScreenInfo::BorderShadowDepth, ScreenInfo::BorderTop, ScreenInfo::BorderWidth, ScreenInfo::ButtonIndent, WorkSpaceMgr::buttonStyle, BW, ScreenInfo::CaseSensitive, ScreenInfo::CenterFeedbackWindow, ScreenInfo::ClearShadowContrast, ScreenInfo::ClickToFocus, ScreenInfo::ClientBorderWidth, ScreenInfo::d_depth, ScreenInfo::DarkShadowContrast, ScreenInfo::DecorateTransients, ScreenInfo::DontMoveOff, ScreenInfo::DontPaintRootWindow, ScreenInfo::DontToggleWorkspaceManagerState, ScreenInfo::DontWarpCursorInWMap, ScreenInfo::DoOpaqueMove, ScreenInfo::DoOpaqueResize, ScreenInfo::DoZoom, ScreenInfo::FirstTime, ScreenInfo::FocusRoot, ScreenInfo::ForceFocus, ScreenInfo::ForceIcon, ScreenInfo::FramePadding, ScreenInfo::HaveFonts, ScreenInfo::Highlight, OccupyWindow::hspace, WorkSpaceMgr::hspace, OccupyWindow::icon_name, WorkSpaceMgr::icon_name, ScreenInfo::IconBorderWidth, ICONIFY_NORMAL, ScreenInfo::IconifyByUnmapping, ScreenInfo::IconifyStyle, ScreenInfo::IconJustification, ScreenInfo::IconManagerDontShow, ScreenInfo::IconManagerFocus, ScreenInfo::IconManagerShadowDepth, ScreenInfo::IconRegionAlignement, ScreenInfo::IconRegionJustification, ScreenInfo::IgnoreCaseInMenuSelection, ScreenInfo::IgnoreModifier, WorkSpaceMgr::initialstate, ScreenInfo::InterpolateMenuColors, IRA_CENTER, IRJ_CENTER, ScreenInfo::MaxIconTitleWidth, ScreenInfo::MaxWindowHeight, ScreenInfo::MaxWindowWidth, ScreenInfo::MenuShadowDepth, ScreenInfo::mm_h, ScreenInfo::mm_w, ScreenInfo::Monochrome, ScreenInfo::MoveDelta, ScreenInfo::MoveOffResistance, ScreenInfo::MovePackResistance, OccupyWindow::name, WorkSpaceMgr::name, ScreenInfo::NameDecorations, ScreenInfo::NoDefaults, ScreenInfo::NoGrabServer, ScreenInfo::NoIconManagers, ScreenInfo::NoIconTitlebar, ScreenInfo::NoRaiseDeicon, ScreenInfo::NoRaiseMove, ScreenInfo::NoRaiseResize, ScreenInfo::NoTitlebar, ScreenInfo::NoWarpToMenuTitle, ScreenInfo::NumAutoLowers, ScreenInfo::NumAutoRaises, WorkSpaceMgr::occupyWindow, ScreenInfo::OpaqueMove, ScreenInfo::OpaqueMoveThreshold, ScreenInfo::OpaqueResize, ScreenInfo::OpaqueResizeThreshold, ScreenInfo::OpenWindowTimeout, OtpScrInitData(), ScreenInfo::PackNewWindows, ScreenInfo::PixmapDirectory, PlaceX, PPOS_OFF, ScreenInfo::RaiseOnClick, ScreenInfo::RaiseOnClickButton, ScreenInfo::RaiseOnWarp, ScreenInfo::RaiseWhenAutoUnSqueeze, ScreenInfo::RandomDisplacementX, ScreenInfo::RandomDisplacementY, ScreenInfo::RandomPlacement, ScreenInfo::ReallyMoveInWorkspaceManager, ScreenInfo::RealRoot, ScreenInfo::ReverseCurrentWorkspace, ScreenInfo::Root, ScreenInfo::rooth, ScreenInfo::rootw, ScreenInfo::rootx, ScreenInfo::rooty, RP_ALL, ScreenInfo::SaveUnder, ScreenInfo::SaveWorkspaceFocus, ScreenInfo::screen, SETFONT, ScreenInfo::Shadow, ScreenInfo::ShortAllWindowsMenus, ScreenInfo::ShowIconManager, ScreenInfo::ShowWinWhenMovingInWmgr, ScreenInfo::ShowWorkspaceManager, ScreenInfo::ShrinkIconTitles, ScreenInfo::SizeStringOffset, ScreenInfo::SloppyFocus, ScreenInfo::SortIconMgr, ScreenInfo::SqueezeTitle, ScreenInfo::StackMode, ScreenInfo::StayUpMenus, STYLE_NORMAL, ScreenInfo::SunkFocusWindowTitle, ScreenInfo::TBInfo, ScreenInfo::ThreeDBorderWidth, ScreenInfo::TitleButtonShadowDepth, ScreenInfo::TitleFocus, ScreenInfo::TitleHighlight, ScreenInfo::TitleJustification, ScreenInfo::TitlePadding, ScreenInfo::TitleShadowDepth, TJ_CENTER, TJ_LEFT, ScreenInfo::TransientHasOccupation, ScreenInfo::TransientOnTop, ScreenInfo::use3Dborders, ScreenInfo::use3Diconmanagers, ScreenInfo::use3Dmenus, ScreenInfo::use3Dtitles, ScreenInfo::use3Dwmap, ScreenInfo::UsePPosition, ScreenInfo::UseSunkTitlePixmap, OccupyWindow::vspace, WorkSpaceMgr::vspace, ScreenInfo::WarpCursor, ScreenInfo::WarpRingAnyWhere, ScreenInfo::WarpToDefaultMenuEntry, ScreenInfo::WarpUnmapped, WorkSpaceMgr::windowFont, ScreenInfo::WindowRingAll, ScreenInfo::WMgrButtonShadowDepth, ScreenInfo::WMgrHorizButtonIndent, ScreenInfo::WMgrVertButtonIndent, WMS_map, ScreenInfo::workSpaceMgr, ScreenInfo::XineramaRoot, ScreenInfo::XMoveGrid, ScreenInfo::YMoveGrid, and ScreenInfo::ZoomCount.
Referenced by ctwm_main().
Return true if a window is not set to override_redirect ("Hey! WM! Leave those wins alone!"), and isn't unmapped.
Used during startup to fake mapping for wins that should be up.
Definition at line 1404 of file ctwm_main.c.
Referenced by ctwm_main().
XtAppContext appContext |
Definition at line 83 of file ctwm_main.c.
Referenced by ConnectToSessionManager(), and ctwm_main().
int Argc |
Definition at line 148 of file ctwm_main.c.
Referenced by ctwm_main(), and SaveYourselfPhase2CB().
char** Argv |
Definition at line 149 of file ctwm_main.c.
Referenced by ctwm_main(), DoRestart(), and SaveYourselfPhase2CB().
Cursor BottomCursor |
Definition at line 113 of file ctwm_main.c.
Referenced by ctwm_main().
Cursor BottomLeftCursor |
Definition at line 109 of file ctwm_main.c.
Referenced by ctwm_main().
Cursor BottomRightCursor |
Definition at line 108 of file ctwm_main.c.
Referenced by ctwm_main().
Whether there were config parsing errors.
Definition at line 95 of file ctwm_main.c.
Referenced by ctwm_main().
XContext ColormapContext |
Definition at line 122 of file ctwm_main.c.
Referenced by CreateColormapWindow(), CreateTwmColormap(), ctwm_main(), FetchWmColormapWindows(), free_cwins(), HandleColormapNotify(), HandleEnterNotify(), and HandleVisibilityNotify().
Magic flag for tests. Nothing else should touch this!
Definition at line 155 of file ctwm_main.c.
Referenced by ctwm_main().
Magic callback for tests.
Special magic for use in tests.
This will trigger right after config file parsing if it's set, and then exit. Nothing else should ever touch this!
Definition at line 160 of file ctwm_main.c.
Referenced by ctwm_main().
Display* dpy |
Definition at line 84 of file ctwm_main.c.
Referenced by AddFuncKey(), AddIconManager(), AddStartResize(), AddToCaptiveList(), AddToMenu(), AddWindow(), AdoptWindow(), Animate(), AnimateButton(), AnimateHighlight(), AnimateIcons(), AnimateRoot(), apply_window_name(), assign_var_savecolor(), AutoLowerWindow(), AutoRaiseWindow(), CaptiveCtwmRootWindow(), ChangeOccupation(), ChangeSize(), ConfigureCaptiveRootWindow(), ConfigureWorkSpaceManager(), ConstrainByBorders(), ConstrainedToWinBox(), Create2DIconManagerIcon(), Create3DBarImage(), Create3DBoxImage(), Create3DCrossImage(), Create3DDotImage(), Create3DIconifyImage(), Create3DIconManagerIcon(), Create3DMenuAnimation(), Create3DMenuIcon(), Create3DMenuImage(), Create3DResizeAnimation(), Create3DResizeImage(), Create3DSunkenResizeImage(), Create3DVertBarImage(), Create3DZoomAnimation(), Create3DZoomImage(), CreateColormapWindow(), CreateDotPixmap(), CreateGCs(), CreateHighlightWindows(), CreateIconManagers(), CreateIconWindow(), CreateLowlightWindows(), CreateMenuIcon(), CreateOccupyWindow(), CreateQuestionPixmap(), CreateResizePixmap(), CreateTwmColormap(), createWindowBoxes(), CreateWindowTitlebarButtons(), CreateWorkSpaceManager(), CreateWorkSpaceManagerWindow(), CreateXLogoPixmap(), ctwm_main(), DeferExecution(), DeIconify(), DeleteHighlightWindows(), DeleteIcon(), DestroyMenu(), DisplayPosition(), DisplaySize(), DisplayWinUnchecked(), do_auto_clamp(), do_key_menu(), do_menu(), DontRedirect(), DoResize(), DoRestart(), DoShutdown(), Draw3DBorder(), Draw3DCorner(), draw_info_window(), DrawIconManagerBorder(), DrawIconManagerIconName(), EF_main(), EndResize(), EwmhAddClientWindow(), EwmhClientMessage(), EwmhClientMessage_NET_WM_STATE(), EwmhDeleteClientWindow(), EwmhGetIcon(), EwmhGetWindowProperties(), EwmhGetWindowProperty(), EwmhHandle_NET_WM_ICONNotify(), EwmhInitAtoms(), EwmhInitScreenEarly(), EwmhInitScreenLate(), EwmhReplaceWM(), EwmhSet_NET_ACTIVE_WINDOW(), EwmhSet_NET_CLIENT_LIST_STACKING(), EwmhSet_NET_FRAME_EXTENTS(), EwmhSet_NET_SHOWING_DESKTOP(), EwmhSet_NET_WM_DESKTOP_ws(), EwmhSet_NET_WM_STATE(), EwmhSet_NET_WORKAREA(), EwmhTerminateScreen(), EwmhUnmapNotify(), Execute(), ExpandIconTitle(), ExtractIcon(), f_altcontext_impl(), f_altkeymap_impl(), f_beep_impl(), f_delete_impl(), f_deleteordestroy_impl(), f_destroy_impl(), f_exec_impl(), f_fill_impl(), f_hypermove_impl(), f_moveresize_impl(), f_movetitlebar_impl(), f_pack_impl(), f_pin_impl(), f_refresh_impl(), f_resize_impl(), f_saveyourself_impl(), f_showiconmgr_impl(), f_sorticonmgr_impl(), f_warpring_impl(), f_warpto_impl(), f_warptoiconmgr_impl(), f_winrefresh_impl(), FadeWindow(), FetchWmColormapWindows(), FetchWmProtocols(), FindBitmap(), FindScreenInfo(), flush_expose(), free_cwins(), FreeImage(), fullzoom(), GenerateTimestamp(), GetCaptiveCTWMUnderPointer(), GetCaptivesList(), GetClientID(), GetColor(), GetFont(), GetImage(), GetMWMHints(), GetShadeColors(), GetTwmScreen(), GetTwmWindow(), GetWindowConfig(), GetWindowRole(), GetWindowSizeHints(), GetWMPropertyString(), GetWMState(), GotoWorkSpace(), HandleButtonPress(), HandleButtonRelease(), HandleClientMessage(), HandleColormapNotify(), HandleConfigureRequest(), HandleCreateNotify(), HandleDestroyNotify(), HandleEnterNotify(), HandleEvents(), HandleExpose(), HandleKeyPress(), HandleLeaveNotify(), HandleMapNotify(), HandleMapRequest(), HandleMotionNotify(), HandlePropertyNotify(), HandleShapeNotify(), HandleUnmapNotify(), HandleVisibilityNotify(), HideIconManager(), HideMenu(), Iconify(), IconUp(), Identify(), InitVirtualScreens(), InsertOwlAbove(), InstallColormaps(), jump(), JumpIconManager(), LastFocusEvent(), LoadBitmapImage(), LoadJpegImage(), LoadXpmImage(), LoadXwdImage(), LocateStandardColormaps(), MakeMenu(), MakeStringCursor(), MappedNotOverride(), mask_out_event(), mask_out_event_mask(), MaskScreen(), MenuDoResize(), MenuEndResize(), MenuStartResize(), mk_blackgray_pixmap(), MosaicFade(), MoveIconManager(), MoveMappedIconManager(), MoveMenu(), MoveOutline(), MoveResizeSizeWindow(), movewindow(), NewBitmapCursor(), NewFontCursor(), Occupy(), OccupyHandleButtonEvent(), OtpCheckConsistencyVS(), OtpCirculateSubwindows(), OwlGetStashedAflags(), OwlStashAflags(), PackIconManager(), packwindow(), Paint3DEntry(), PaintIcon(), PaintMenu(), PaintNormalEntry(), PaintTitle(), PaintTitleButton(), PaintWsButton(), PopDownMenu(), PopUpMenu(), put_pixel_on_root(), RedirectToCaptive(), RedoIcon(), RedoIconName(), ReGrab(), ReMapOne(), RemoveFromCaptiveList(), RemoveIconManager(), ReparentFrameAndIcon(), RescueWindows(), ReshapeIcon(), resizeFromCenter(), ResizeOccupyWindow(), ResizeWorkSpaceManager(), restore_mask(), RestoreForShutdown(), RestoreWinConfig(), send_clientmessage(), SendPropertyMessage(), set_window_icon_name(), set_window_name(), SetBorderCursor(), SetCaptivesList(), SetFocus(), SetFocusVisualAttributes(), SetFrameShape(), SetMapStateProp(), SetNoRedirect(), SetPropsIfCaptiveCtwm(), SetRaiseWindow(), SetupFrame(), SetupOccupation(), ShowIconifiedIcon(), ShrinkIconTitle(), Squeeze(), start_m4(), StartResize(), SweepWindow(), synth_btnevent_for_moveresize(), SynthesiseFocusIn(), SynthesiseFocusOut(), takeover_screen(), UninstallRootColormap(), UnmapTransients(), UnmaskScreen(), UpdateMenu(), Vanish(), WarpCursorToDefaultEntry(), WarpToScreen(), WarpToWindow(), wmap_mapwin_backend(), WMapAddWindowToWorkspace(), WMapIconify(), WMapRedrawWindow(), WMapRemoveWindow(), WMapRemoveWindowFromWorkspace(), WMapRestack(), WMapSetupWindow(), WMgrAddToCurrentWorkSpaceAndWarp(), WMgrHandleButtonEvent(), WMgrHandleExposeEvent(), WMgrSetButtonsState(), WMgrSetMapState(), WriteWinConfigEntry(), Zoom(), ZoomInWindow(), and ZoomOutWindow().
XGCValues Gcv |
Definition at line 126 of file ctwm_main.c.
Definition at line 131 of file ctwm_main.c.
Referenced by AddWindow(), ctwm_main(), and HandleMapRequest().
bool HasShape |
Definition at line 90 of file ctwm_main.c.
Referenced by AddWindow(), ctwm_main(), do_squeeze_entry(), InitEvents(), and SetupFrame().
char* Home |
Definition at line 128 of file ctwm_main.c.
Referenced by ctwm_main(), ExpandFilename(), ExpandFilePath(), ExpandPixmapPath(), LoadTwmrc(), and m4_defs().
int HomeLen |
Definition at line 129 of file ctwm_main.c.
Referenced by ctwm_main(), and ExpandFilePath().
Definition at line 144 of file ctwm_main.c.
Window JunkChild |
Definition at line 142 of file ctwm_main.c.
Definition at line 144 of file ctwm_main.c.
Definition at line 144 of file ctwm_main.c.
Definition at line 144 of file ctwm_main.c.
Window JunkRoot |
Definition at line 142 of file ctwm_main.c.
Referenced by AddWindow(), CreateIconWindow(), f_movetitlebar_impl(), GetCaptiveCTWMUnderPointer(), HandleClientMessage(), HandleEnterNotify(), HandlePropertyNotify(), IconUp(), Identify(), movewindow(), NewBitmapCursor(), Occupy(), resizeFromCenter(), RestoreWinConfig(), UpdateMenu(), WriteWinConfigEntry(), and Zoom().
Definition at line 144 of file ctwm_main.c.
Referenced by AddWindow(), GetBitmap(), HandlePropertyNotify(), PackIconManager(), RestoreWinConfig(), and WriteWinConfigEntry().
int JunkX |
Definition at line 143 of file ctwm_main.c.
Referenced by AddWindow(), CreateIconWindow(), f_movetitlebar_impl(), GetCaptiveCTWMUnderPointer(), HandleClientMessage(), HandlePropertyNotify(), Identify(), movewindow(), Occupy(), PackIconManager(), resizeFromCenter(), and RestoreWinConfig().
int JunkY |
Definition at line 143 of file ctwm_main.c.
Cursor LeftButt |
Definition at line 117 of file ctwm_main.c.
Referenced by ctwm_main(), HandleButtonPress(), and movewindow().
Cursor LeftCursor |
Definition at line 110 of file ctwm_main.c.
Referenced by ctwm_main().
XContext MenuContext |
Definition at line 120 of file ctwm_main.c.
Referenced by ctwm_main(), DestroyMenu(), HandleButtonPress(), HandleEnterNotify(), HandleExpose(), and MakeMenu().
Cursor MiddleButt |
Definition at line 116 of file ctwm_main.c.
Referenced by ctwm_main(), HandleButtonPress(), and movewindow().
XClassHint NoClass |
Definition at line 124 of file ctwm_main.c.
Referenced by AddWindow(), and ctwm_main().
int NumScreens |
How many Screens are on our display.
Definition at line 89 of file ctwm_main.c.
Referenced by AddWindow(), Animate(), AnimateRoot(), ctwm_main(), EwmhTerminate(), FindScreenInfo(), JumpIconManager(), RestoreForShutdown(), SaveYourselfPhase2CB(), takeover_screen(), and WarpToScreen().
int PreviousScreen |
Definition at line 94 of file ctwm_main.c.
Referenced by AddWindow(), ctwm_main(), f_warptoscreen_impl(), and WarpToScreen().
char* ProgramName |
Definition at line 146 of file ctwm_main.c.
Referenced by AddWindow(), ChangeSize(), chk_keytable_order(), ConfigureCaptiveRootWindow(), ConnectToSessionManager(), CreateTitleButton(), CreateWindowTitlebarButtons(), ctwm_main(), doparse(), DoRestart(), EF_main(), FetchWmColormapWindows(), FindBitmap(), get_builtin_animated_pixmap(), get_builtin_plain_pixmap(), get_builtin_scalable_pixmap(), GetColor(), GetFont(), GetWMPropertyString(), handle_signal_flag(), InitTitlebarButtons(), InsertRGBColormap(), LoadTwmrc(), MoveIconManager(), MoveMappedIconManager(), NewBitmapCursor(), NewFontCursor(), SetCurrentTBAction(), sh_restart(), sh_shutdown(), takeover_screen(), twmFileInput(), twmrc_error_prefix(), usage(), and WarpToScreen().
size_t ProgramNameLen |
Definition at line 147 of file ctwm_main.c.
Referenced by ctwm_main(), sh_restart(), and sh_shutdown().
Window ResizeWindow |
Definition at line 85 of file ctwm_main.c.
Referenced by EndResize(), HandleButtonPress(), HandleButtonRelease(), HandleMotionNotify(), InitEvents(), and StartResize().
Definition at line 151 of file ctwm_main.c.
Referenced by AdoptWindow(), ctwm_main(), do_single_keyword(), HandleMapRequest(), and SetupOccupation().
Cursor RightButt |
Definition at line 115 of file ctwm_main.c.
Referenced by ctwm_main(), HandleButtonPress(), and movewindow().
Cursor RightCursor |
Definition at line 111 of file ctwm_main.c.
Referenced by ctwm_main().
ScreenInfo* Scr = NULL |
The ScreenInfo struct for the current Screen.
Definition at line 93 of file ctwm_main.c.
XContext ScreenContext |
Definition at line 121 of file ctwm_main.c.
Referenced by AddIconManager(), CreateIconWindow(), CreateWorkSpaceManagerWindow(), ctwm_main(), DestroyMenu(), GetTwmScreen(), HandleDestroyNotify(), HandlePropertyNotify(), MakeMenu(), RemoveIconManager(), UpdateMenu(), WMapAddWindowToWorkspace(), and WMapRemoveWindowFromWorkspace().
ScreenInfo** ScreenList |
List of ScreenInfo structs for each Screen.
Definition at line 92 of file ctwm_main.c.
Referenced by Animate(), AnimateRoot(), ctwm_main(), EwmhTerminate(), FindScreenInfo(), JumpIconManager(), RestoreForShutdown(), SaveYourselfPhase2CB(), WarpToScreen(), and WriteWinConfigEntry().
int ShapeErrorBase |
Definition at line 91 of file ctwm_main.c.
Referenced by ctwm_main().
int ShapeEventBase |
Definition at line 91 of file ctwm_main.c.
Referenced by ctwm_main(), and InitEvents().
Cursor TopCursor |
Definition at line 112 of file ctwm_main.c.
Referenced by ctwm_main(), DoResize(), MenuDoResize(), and SetBorderCursor().
Cursor TopLeftCursor |
Definition at line 107 of file ctwm_main.c.
Referenced by ctwm_main().
Cursor TopRightCursor |
Definition at line 106 of file ctwm_main.c.
Referenced by ctwm_main().
XContext TwmContext |
Definition at line 119 of file ctwm_main.c.
Referenced by AddIconManager(), CreateIconWindow(), CreateWorkSpaceManagerWindow(), ctwm_main(), GetTwmWindow(), HandleDestroyNotify(), HandlePropertyNotify(), movewindow(), RemoveIconManager(), WMapAddWindowToWorkspace(), and WMapRemoveWindowFromWorkspace().
Cursor UpperLeftCursor |
Definition at line 105 of file ctwm_main.c.
Referenced by AddWindow(), and ctwm_main().
Atom XCTWMAtom[NUM_CTWM_XATOMS] |