graceful-window-close

command
v0.0.0-...-f294442 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2021 License: Unlicense Imports: 9 Imported by: 0

Documentation

Overview

Example graceful-window-close shows how to create windows that can be closed without killing your X connection (and thereby destroying any other windows you may have open). This is actually achieved through an ICCCM standard. We add the WM_DELETE_WINDOW to the WM_PROTOCOLS property on our window. This indicates to well-behaving window managers that a certain kind of client message should be sent to our client when the window should be closed. If we *don't* add the WM_DELETE_WINDOW to the WM_PROTOCOLS property, the window manager will typically call KillClient---which will destroy the window and your X connection.

If you click inside one of the windows created, a new window will be automatically created.

The program will stop when all windows have been closed.

For more information on the convention used please see http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.2.7 and http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL