1 This directory contains only the hints_test.c program. To compile it
2 either try "make" or something like
4 % gcc -g -O2 -Wall -I/usr/X11R6/include -L/usr/X11R6/lib -c hints_test.c
5 % gcc -g -O2 -Wall -o hints_test hints_test.o -I/usr/X11R6/include -L/usr/X11R6/lib -lX11
9 The program does nothing: it is just a 170x100 black window. However,
10 using options you can set various hints (XSizeHints, XWMHints, MWM hints,
11 EWMH hints) on the window. Here are the options:
17 Set the min_width and min_height XSizeHints to w and h
20 Set the max_width and max_height XSizeHints to w and h
23 Set the inc_width and inc_height XSizeHints to w and h
26 Set the program geometry and the gravity accordingly.
27 geometry is a standard X geometry (not a F geometry)
29 --us-geometry geometry
30 Set the user geometry and the gravity accordingly.
31 geometry is a standard X geometry (not a F geometry)
34 Set the InputHint to Bool where Bool is either true or false
37 Respect the WM_TAKE_FOCUS protocol
40 By default the program respect the WM_DELETE_WINDOW protocol. This
41 option forces the program to do not use it at all.
44 Set the initial wm state to state, where state can be withdrawn,
48 Set the wm urgency flags
51 Set the window group leader to win where win can be root,
52 window or the id of an window.
55 Set the WM_TRANSIENT_FOR window to win where win can be root
56 or the id of an window.
59 where args is a non empty space separated list of the following
60 key words: all, border, resizeh, title, menu, minimize, maximize
63 where args is a non empty space separated list of the following
64 key words: all, resize, move, maximize, minimize, close
67 where arg can be: modless, app_modal, sys_modal, full_app_modal
70 Set the EWMH window type to type where type can be: normal, dock,
71 toolbar, desktop, menu, dialog, splash, utility
74 Set the EWMH window states to states where states is a non empty
75 space separated list of the following key words: hidden, shaded,
76 sticky, skippager, skiptaskbar, maxhoriz, maxvert, modal, staysontop,
80 Set desktop initial state
82 This is just a test program there is no full checking when the options
83 are parsed. Do not forget to use xprop and xwininfo.