CTWM
Loading...
Searching...
No Matches
Functions
/usr/src/RPM/BUILD/ctwm-4.1.0/ctwm_shutdown.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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) __attribute__((noreturn))
 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 )

◆ 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().