CTWM
Loading...
Searching...
No Matches
Functions
/usr/src/RPM/BUILD/ctwm-4.1.0/ctwm_shutdown.c File Reference
#include "ctwm.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "animate.h"
#include "colormaps.h"
#include "ctwm_atoms.h"
#include "ctwm_shutdown.h"
#include "screen.h"
#include "otp.h"
#include "win_ops.h"
#include "win_utils.h"
Include dependency graph for ctwm_shutdown.c:

Go to the source code of this file.

Functions

static void RestoreForShutdown (Time mytime)
 Restore some window positions/etc in preparation for going away.
 
void RestoreWinConfig (TwmWindow *tmp)
 Put a window back where it should be if we don't (any longer) control it and reparent it back up to the root.
 
void DoShutdown (void)
 Cleanup and exit ctwm.
 
void DoRestart (Time t)
 exec() ourself to restart.
 

Function Documentation

◆ DoRestart()

void DoRestart ( Time t)

exec() ourself to restart.

Definition at line 251 of file ctwm_shutdown.c.

References Argv, dpy, PlaceX, ProgramName, RestoreForShutdown(), shutdown_session(), and StopAnimation().

Referenced by f_restart_impl(), and handle_signal_flag().

◆ DoShutdown()

void DoShutdown ( void )

◆ RestoreForShutdown()

static void RestoreForShutdown ( Time mytime)
static

Restore some window positions/etc in preparation for going away.

Definition at line 172 of file ctwm_shutdown.c.

References dpy, InstallColormaps(), NumScreens, OtpBottomWin(), OtpNextWinUp(), PlaceX, RestoreWinConfig(), Scr, ScreenList, and SetFocus().

Referenced by DoRestart(), and DoShutdown().

◆ RestoreWinConfig()

void RestoreWinConfig ( TwmWindow * tmp)

Put a window back where it should be if we don't (any longer) control it and reparent it back up to the root.

This leaves it where it was before we started (well, adjusted by any moves we've made to it since), and placed so that if we restart and take it back over, it'll wind up right where it is now, so restarting doesn't shift windows all over the place.

Definition at line 42 of file ctwm_shutdown.c.

References dpy, GetGravityOffsets(), JunkBW, JunkDepth, JunkHeight, JunkRoot, JunkWidth, JunkX, JunkY, PlaceX, ReparentWindow(), Scr, Squeeze(), visible(), and WinWin.

Referenced by HandleUnmapNotify(), and RestoreForShutdown().