CTWM
|
#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"
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. | |
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().
Cleanup and exit ctwm.
Definition at line 215 of file ctwm_shutdown.c.
References CLarg, dpy, EwmhTerminate(), PlaceX, play_exit_sound(), RemoveFromCaptiveList(), RestoreForShutdown(), and Scr.
Referenced by AddToList(), DieCB(), EwmhSelectionClear(), f_quit_impl(), and handle_signal_flag().
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().
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().