make undecorated windows place according to their undecorated state (bug #5179)
authorDana Jansens <danakj@orodu.net>
Fri, 14 Oct 2011 22:54:32 +0000 (18:54 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 14 Oct 2011 23:01:27 +0000 (19:01 -0400)
commit6d0bd687bf29a636bfba75447118c1888b91a984
tree1c1525f9e8dce8abd3ee34364066b53e2a641e8e
parent56f0d35ecd6643424fbfcb95f1aa885f416569d5
make undecorated windows place according to their undecorated state (bug #5179)

splits client_setup_decor_and_functions() into 3 functions.

1. add client_setup_default_decor_and_functions()
- called from client_get_all() to get the maximum decor/functions that will
  be available for use by the client.
2. add client_setup_decor_undecorated()
- sets up the client's undecorarted decor if the flag is set by the per-app
  settings or session state.
- we do this before setting up the frame so the frame reflects the window as it
  should be when getting placed.
3. client_setup_decor_and_functions()
- calls the above 2 to perform the same functions as before.
- added to client_apply_startup_state() so that we can ensure it was run fully
  at least once in the mapping process, since it is not called in
  client_get_all() anymore.
openbox/client.c