]> icculus.org git repositories - dana/openbox.git/log
dana/openbox.git
11 years agospecify the encoding of filesystem paths, and include a comparator function
Dana Jansens [Thu, 27 Jan 2011 22:28:12 +0000 (17:28 -0500)]
specify the encoding of filesystem paths, and include a comparator function

the comparator compares two ObtLink** objects by their names.  if the names are
equal it uses the path of the source as a tie-breaker.

11 years agouse the filesystem's locale for opening a .desktop file
Dana Jansens [Thu, 27 Jan 2011 22:27:22 +0000 (17:27 -0500)]
use the filesystem's locale for opening a .desktop file

11 years agoShow the list of categories in the apps menus as submenus.
Dana Jansens [Wed, 26 Jan 2011 23:11:22 +0000 (18:11 -0500)]
Show the list of categories in the apps menus as submenus.

The categories are not based on what you actually have yet but will be soon.

Removed the "main category" notion from the links themselves, they just
publish a list of categories instead.  Moved this notion out to the Apps menu
itself.  This should make it easy to possibly to customize your set of
visible categories if we should like to do that sometime.

11 years agoStore all links in the linkbase grouped by their main category.
Dana Jansens [Tue, 25 Jan 2011 22:38:47 +0000 (17:38 -0500)]
Store all links in the linkbase grouped by their main category.

11 years agodon't free the linkbase on reconfigure
Dana Jansens [Tue, 25 Jan 2011 18:40:56 +0000 (13:40 -0500)]
don't free the linkbase on reconfigure

the menu does get freed, so don't free it with the menu.

11 years agodon't free lists in the linkbase hash table prematurely.
Dana Jansens [Tue, 25 Jan 2011 18:25:22 +0000 (13:25 -0500)]
don't free lists in the linkbase hash table prematurely.

the values (GSList objects) are freed by the hash table's free function if a
new value is inserted.  if we change the list and reinsert it, then it would
cause the list we're inserting to get freed (partially).  not good.  so instead
we manually free them when we remove them/destroy the hash table.

11 years agoWIP: Add an xdg applications menu (it doesn't have anything in it yet, but it does...
Dana Jansens [Mon, 24 Jan 2011 22:06:41 +0000 (17:06 -0500)]
WIP: Add an xdg applications menu (it doesn't have anything in it yet, but it does make a linkbase)

11 years agoAvoid blocks on read() for inotify.
Dana Jansens [Mon, 24 Jan 2011 22:05:44 +0000 (17:05 -0500)]
Avoid blocks on read() for inotify.

When we come into the function we don't know how much data is available to
read.  So just read a single event and return, so poll can figure out if there
is more for us or not.

11 years agoMove the GSource attach out to the generic watch code, and avoid blocking reads
Dana Jansens [Mon, 24 Jan 2011 21:57:37 +0000 (16:57 -0500)]
Move the GSource attach out to the generic watch code, and avoid blocking reads

GLib seems to call the read function sometimes even tho the PollFD's revents
field is empty.  So don't read from the fd if this happens.

11 years agoAdd an optional callback to ObtLinkBase to hear about updates, and fix crash.
Dana Jansens [Mon, 24 Jan 2011 21:56:21 +0000 (16:56 -0500)]
Add an optional callback to ObtLinkBase to hear about updates, and fix crash.

11 years agoFilter links in a ObtLinkbase by environments.
Dana Jansens [Mon, 24 Jan 2011 20:13:27 +0000 (15:13 -0500)]
Filter links in a ObtLinkbase by environments.

Store a set of active environments in a linkbase and only include links in the
linkbase that 1) want to be displayed, 2) pass TryExec, 3) match environment
requirements and restrictions.

11 years agoadd comments
Dana Jansens [Mon, 24 Jan 2011 20:02:07 +0000 (15:02 -0500)]
add comments

11 years agoadd --disable option inotify
Dana Jansens [Mon, 4 Oct 2010 22:03:36 +0000 (18:03 -0400)]
add --disable option inotify

so we can test compiling without it present

11 years agoadd a comment
Dana Jansens [Mon, 4 Oct 2010 22:55:03 +0000 (18:55 -0400)]
add a comment

11 years agoLinkbase adds all the .desktops in the system, and updates them as they change.
Dana Jansens [Tue, 21 Sep 2010 00:46:37 +0000 (20:46 -0400)]
Linkbase adds all the .desktops in the system, and updates them as they change.

Fixes to .desktop parsing.
Add language/locale support for .desktop files.
Fixes to inotify watching, change what information is passed through the notify handler.
Add linkbase.h to the public obt headers.

11 years agoAdd linkbase which will keep track of available .desktop files for application launch...
Dana Jansens [Mon, 20 Sep 2010 19:47:10 +0000 (15:47 -0400)]
Add linkbase which will keep track of available .desktop files for application launching etc.

11 years agoAdd/fix inotify support for watching filesystem changes.
Dana Jansens [Mon, 20 Sep 2010 19:45:36 +0000 (15:45 -0400)]
Add/fix inotify support for watching filesystem changes.

obt/watch.h has the interface.
obt/watch.c has the generic watch code.
obt/watch_inotify.c has an inotify-specific backend, which could be replaced with another.

11 years agosome missing ifdef HAVE_SYS_INOTIFY
Dana Jansens [Mon, 24 Jan 2011 19:09:49 +0000 (14:09 -0500)]
some missing ifdef HAVE_SYS_INOTIFY

11 years agoadd an inotify watcher for directories (doesnt work without inotify yet)
Dana Jansens [Mon, 24 Jan 2011 19:23:46 +0000 (14:23 -0500)]
add an inotify watcher for directories (doesnt work without inotify yet)

11 years agoAdd "visible" filter for windows on current desktop.
Dana Jansens [Mon, 24 Oct 2011 23:40:11 +0000 (19:40 -0400)]
Add "visible" filter for windows on current desktop.

11 years agoFix error printing when parsing and save the last error.
Dana Jansens [Sat, 15 Oct 2011 19:11:56 +0000 (15:11 -0400)]
Fix error printing when parsing and save the last error.

Errors would have a line number relative to the string of text being parsed,
but if this is in a larger file, then it's useless. So add a callback that
can modify the line number for parsing things nested in a larger document.

This gives proper errors for parsing actions in the xml config files.

Also, change how errors are given back when creating a new action. Instead of
printing it directly, return an error string so the parser can show what line
the invalid action was found on.

11 years agoAdd obt_xml_file_path() and obt_xml_node_string_raw() and don't return text in child...
Dana Jansens [Sat, 15 Oct 2011 17:43:07 +0000 (13:43 -0400)]
Add obt_xml_file_path() and obt_xml_node_string_raw() and don't return text in child nodes.

11 years agoAdd an action for toggling debug output.
Dana Jansens [Fri, 14 Oct 2011 23:53:06 +0000 (19:53 -0400)]
Add an action for toggling debug output.

- Rename "Debug" action to "Print" for displaying text.
- Add "Debug" action that sets/toggles showing debug messages. It has the
  standard set:<foo> argument where <foo> is on/off/toggle.

11 years agoread the per-app position x/y values from the right xml node
Dana Jansens [Fri, 14 Oct 2011 22:52:20 +0000 (18:52 -0400)]
read the per-app position x/y values from the right xml node

11 years agoAdd SkipTaskbar/SkipPager actions (bug #3334)
Dana Jansens [Fri, 14 Oct 2011 20:46:18 +0000 (16:46 -0400)]
Add SkipTaskbar/SkipPager actions (bug #3334)

11 years agoFix a crash on shutdown/reconfigure. Clean up the registered action filters properly.
Dana Jansens [Fri, 14 Oct 2011 20:42:37 +0000 (16:42 -0400)]
Fix a crash on shutdown/reconfigure.  Clean up the registered action filters properly.

Frees the list and sets the pointer to NULL for empty list.

11 years agoRemove complicated stuff from config_value.c that we're not using at the moment.
Dana Jansens [Mon, 8 Aug 2011 22:02:57 +0000 (18:02 -0400)]
Remove complicated stuff from config_value.c that we're not using at the moment.

11 years agoAdd functions to set the value of an xml node
Dana Jansens [Mon, 8 Aug 2011 21:44:06 +0000 (17:44 -0400)]
Add functions to set the value of an xml node

11 years agoAdd a function to save a cache file (it makes the directory as needed etc).
Dana Jansens [Mon, 8 Aug 2011 21:38:47 +0000 (17:38 -0400)]
Add a function to save a cache file (it makes the directory as needed etc).

11 years agoadd obt_xml_load_cache_file() to load a file in ~/.cache/<domain>/<file>
Dana Jansens [Mon, 8 Aug 2011 20:39:24 +0000 (16:39 -0400)]
add obt_xml_load_cache_file() to load a file in ~/.cache/<domain>/<file>

11 years agoMake the ConfigValue list type into a gchar** string list instead.
Dana Jansens [Mon, 8 Aug 2011 16:35:52 +0000 (12:35 -0400)]
Make the ConfigValue list type into a gchar** string list instead.

1. I don't want to have to deal with nested lists cuz they just don't need to
   happen (now).

11 years agoAdd obt_xml_path_get_list() that returns a list of xml nodes that match the given...
Dana Jansens [Mon, 8 Aug 2011 16:34:17 +0000 (12:34 -0400)]
Add obt_xml_path_get_list() that returns a list of xml nodes that match the given path.

<foo>
  <b>hi</b>
  <b>i'm</b>
  <b>a</b>
  <b>list</a>
</foo>

It would return all the b nodes above for the path "foo/b".

11 years agodon't create empty xml nodes when there is no default value given for them. NULL...
Dana Jansens [Mon, 8 Aug 2011 15:33:37 +0000 (11:33 -0400)]
don't create empty xml nodes when there is no default value given for them. NULL != ""

11 years agoTurn the Foo/ToggleFoo/UnFoo actions into a single Foo action with option "set" which...
Dana Jansens [Mon, 8 Aug 2011 14:51:45 +0000 (10:51 -0400)]
Turn the Foo/ToggleFoo/UnFoo actions into a single Foo action with option "set" which is "on", "off", or "toggle"

11 years agoUse ObConfigValue to parse gravity coords, remove parse special functions from config...
Dana Jansens [Sat, 6 Aug 2011 00:54:59 +0000 (20:54 -0400)]
Use ObConfigValue to parse gravity coords, remove parse special functions from config.[ch]

11 years agoRename obt_xml_find_node() to obt_xml_find_sibling(). Add obt_xml_tree_get_node(...
Dana Jansens [Sat, 6 Aug 2011 00:36:51 +0000 (20:36 -0400)]
Rename obt_xml_find_node() to obt_xml_find_sibling(). Add obt_xml_tree_get_node() and xml_tree_delete_node()

11 years agoFix interactive actions with the new action running code.
Dana Jansens [Thu, 4 Aug 2011 17:43:34 +0000 (13:43 -0400)]
Fix interactive actions with the new action running code.

It was running the interactive action init code when running an interactive
action that is already running.

11 years agoRename ObActionValue to ObConfigValue. This holds one of three types.
Dana Jansens [Fri, 5 Aug 2011 15:35:09 +0000 (11:35 -0400)]
Rename ObActionValue to ObConfigValue.  This holds one of three types.

1. A string
2. A list of other ObConfigValues
3. A list of actions (ObActionList).

The string type can be returned in various ways such as int, enum, fraction, gravity coordiate.

Provide a ways to save the ObConfigValue into a pointer.  This lets you keep
the value contained withing the ObConfigValue in a variable of its basic type.

11 years agoregister filters on startup
Dana Jansens [Wed, 3 Aug 2011 21:03:30 +0000 (17:03 -0400)]
register filters on startup

TODO:
1. write filters for everything in actions/if.c
2. rm actions/if.c
3. make action(s) to change config options?
   includes key and mouse binding
4. rm -rf *xml*?

11 years agoparse filters and actionlists inside an action list correctly
Dana Jansens [Wed, 3 Aug 2011 21:03:11 +0000 (17:03 -0400)]
parse filters and actionlists inside an action list correctly

11 years agoPass a client set to all actions, and make focus cycling use a client set.
Dana Jansens [Wed, 3 Aug 2011 20:58:23 +0000 (16:58 -0400)]
Pass a client set to all actions, and make focus cycling use a client set.

11 years agoProvide operations to get the size of a ObClientSet, and get the clients in it. Also...
Dana Jansens [Wed, 3 Aug 2011 20:57:21 +0000 (16:57 -0400)]
Provide operations to get the size of a ObClientSet, and get the clients in it. Also bug fixes.

11 years agoAdd functions to ObClientSet to run a function on each client in the set, and add...
Dana Jansens [Wed, 3 Aug 2011 15:32:02 +0000 (11:32 -0400)]
Add functions to ObClientSet to run a function on each client in the set, and add constness.
Anything that doesnt change/destroy the given set takes a const ObClientSet*.

11 years agoGenerate a fake leave event on actions that move windows (used to generate another...
Dana Jansens [Tue, 2 Aug 2011 20:28:19 +0000 (16:28 -0400)]
Generate a fake leave event on actions that move windows (used to generate another enter event?)

11 years agoRename the fields in ObActionListRun for clarity
Dana Jansens [Tue, 2 Aug 2011 20:27:33 +0000 (16:27 -0400)]
Rename the fields in ObActionListRun for clarity

11 years agoAdd action_list_run.c/h with action_list_run() and struct ObActionListRun.
Dana Jansens [Tue, 2 Aug 2011 19:55:44 +0000 (15:55 -0400)]
Add action_list_run.c/h with action_list_run() and struct ObActionListRun.

This function runs an action list, taking over from the function that used to
live in action.c.  Now the action.c function will simply run a single action.

The actions and filters now take a const ObActionListRun* which describes
the user event which triggered the actions/filters to run.

The action_list_run() function can also run filters, yay.  However...

TODO:
1. the filters' client sets are not passed to actions yet. do this.
2. make action(s) to change config options
   includes key and mouse binding
3. rm -rf *xml*

11 years agoAdd a means to duplicate ObClientSet
Dana Jansens [Tue, 2 Aug 2011 18:45:21 +0000 (14:45 -0400)]
Add a means to duplicate ObClientSet

and fix destroy notifications.
- set the destroy notification when making a set with a single window, not
  when making an empty set.
- always add/remove the destroy notification when creating/destroying the hash
  table

11 years agoAdd the minus and contains() operations to ObClientSet, and allow creating a set...
Dana Jansens [Tue, 2 Aug 2011 18:20:14 +0000 (14:20 -0400)]
Add the minus and contains() operations to ObClientSet, and allow creating a set of any single client.

11 years agoFix expand/reduce in the full or empty set cases.
Dana Jansens [Tue, 2 Aug 2011 17:31:23 +0000 (13:31 -0400)]
Fix expand/reduce in the full or empty set cases.

11 years agoMake empty ObClientSet objects not hold a hash table.
Dana Jansens [Fri, 29 Jul 2011 21:35:31 +0000 (17:35 -0400)]
Make empty ObClientSet objects not hold a hash table.

This saves creating one every time we make an empty set (boolean filter
  false result)

11 years agomake a special "ALL" ObClientSet which contains all clients.
Dana Jansens [Fri, 29 Jul 2011 21:28:14 +0000 (17:28 -0400)]
make a special "ALL" ObClientSet which contains all clients.

This saves copying all the clients into the set.

IMPORTANT: This client set will test as a "true" boolean regardless of if there
  are clients present or not.
  - We did this to allow for boolean filters.  A boolean filter returns the
    "ALL" set for its true value, and an empty set for its false value.

11 years agoadd the "all" and "target" filters
Dana Jansens [Fri, 29 Jul 2011 20:59:16 +0000 (16:59 -0400)]
add the "all" and "target" filters

11 years agoPass a user data to the client_set_reduce/expand function which is given to the
Dana Jansens [Fri, 29 Jul 2011 20:57:55 +0000 (16:57 -0400)]
Pass a user data to the client_set_reduce/expand function which is given to the
callback.

This lets us pass the filter's context in to its test function along with the
  client window, so it can make an intelligent decision about adding/removing
  the client from the current set.

11 years agoStick an ObClientSetReduce/ExpandFunc directly in the filter definition.
Dana Jansens [Fri, 29 Jul 2011 20:52:59 +0000 (16:52 -0400)]
Stick an ObClientSetReduce/ExpandFunc directly in the filter definition.

Saves a redirection to the filter just to go to the client_set_reduce/expand
  function.

11 years agoRename actions/all.[ch] and filters/all.[ch] to _all.[ch]
Dana Jansens [Fri, 29 Jul 2011 20:42:15 +0000 (16:42 -0400)]
Rename actions/all.[ch] and filters/all.[ch] to _all.[ch]

There will actually be an "all" filter so this clashed.

11 years agoActions say what kind of filter they would like by default (one window or all)
Dana Jansens [Fri, 29 Jul 2011 20:37:41 +0000 (16:37 -0400)]
Actions say what kind of filter they would like by default (one window or all)

11 years agomake empty sets still a ObClientSet* structure and not a NULL.
Dana Jansens [Fri, 29 Jul 2011 20:18:53 +0000 (16:18 -0400)]
make empty sets still a ObClientSet* structure and not a NULL.

so we can differentient between a missing set and an empty set.

11 years agoUse ObClientSet objects in the filter system, so filters work on these sets.
Dana Jansens [Fri, 29 Jul 2011 20:01:11 +0000 (16:01 -0400)]
Use ObClientSet objects in the filter system, so filters work on these sets.

11 years agoAdd ObClientSet data type. It holds a set of clients !
Dana Jansens [Fri, 29 Jul 2011 20:00:02 +0000 (16:00 -0400)]
Add ObClientSet data type.  It holds a set of clients !

The sets can be modified by union and intersection, and can have clients
added or removed with a test callback function.
They use a GHashTable underneath.

11 years agoKeep track of the currently targetted client for user events in event.c/h
Dana Jansens [Fri, 29 Jul 2011 19:58:35 +0000 (15:58 -0400)]
Keep track of the currently targetted client for user events in event.c/h

11 years agoAdd filters/all.c which will run startup on all the filters to register them
Dana Jansens [Fri, 29 Jul 2011 19:08:12 +0000 (15:08 -0400)]
Add filters/all.c which will run startup on all the filters to register them

11 years agoAdd a generic filter system similar to the action system (not connected to anything...
Dana Jansens [Thu, 28 Jul 2011 19:45:43 +0000 (15:45 -0400)]
Add a generic filter system similar to the action system (not connected to anything yet)

11 years agoRename ObActions* to ObAction* and remove more 3.4-compat action stuff that was missed.
Dana Jansens [Thu, 28 Jul 2011 18:43:55 +0000 (14:43 -0400)]
Rename ObActions* to ObAction* and remove more 3.4-compat action stuff that was missed.

11 years agorm some unused fn defns
Dana Jansens [Thu, 28 Jul 2011 18:07:22 +0000 (14:07 -0400)]
rm some unused fn defns

11 years agorm the actions_parse* functions which parsed xml actions
Dana Jansens [Thu, 28 Jul 2011 18:05:54 +0000 (14:05 -0400)]
rm the actions_parse* functions which parsed xml actions

11 years agorm some unused struct defns cruft
Dana Jansens [Thu, 28 Jul 2011 18:03:28 +0000 (14:03 -0400)]
rm some unused struct defns cruft

11 years agoParse ObActionsList*s from the config file (out of the xml for now).
Dana Jansens [Wed, 27 Jul 2011 20:32:05 +0000 (16:32 -0400)]
Parse ObActionsList*s from the config file (out of the xml for now).

- config.c: use the new actions parser
- actions.c: provide the actions parser a way to create a new action (takes
    a hash table of options for it)
- actions/*.c: take a hash table of options instead of an xml subtree
- *: us ObActionsList* instead of a GList* of ObActionAct*s.

TODO:
1. make filters
  openbox/filters/*.c
  openbox/filters.c as interface to them
  store filters in parsed filter tests instead of key/value pairs
2. make action(s) to change config options
  includes key and mouse binding
3. rm -rf *xml*

11 years agoAdd a parser for the action command language.
Dana Jansens [Tue, 26 Jul 2011 22:06:42 +0000 (18:06 -0400)]
Add a parser for the action command language.

The parser generates list of actions (complete with filters).  The parser isn't
called anywhere yet, and uses the incomplete actions_act_new() function.

TODO:
The filters now are just text string key:value pairs. But they should
  become intelligent objects like actions are.
The actions need to change their option parsing from XML to the new key:value
  pair lists.

11 years agoLink X into libobt (Fixes compile on debian).
Dana Jansens [Thu, 27 Oct 2011 17:29:30 +0000 (13:29 -0400)]
Link X into libobt (Fixes compile on debian).

11 years agoIgnore enters on windows that are raised over focused window while being mapped.
Dana Jansens [Wed, 26 Oct 2011 14:30:37 +0000 (10:30 -0400)]
Ignore enters on windows that are raised over focused window while being mapped.

11 years agoUse the KeyCode to directly find the modifier mask. (bug #5173)
Dana Jansens [Sun, 16 Oct 2011 15:50:15 +0000 (11:50 -0400)]
Use the KeyCode to directly find the modifier mask. (bug #5173)

We were finding the KeySym first, and then converting back to a modifier mask.
But KeySym on a key's release can differ from on its press, and we don't need
them to determine the modmask from the keycode.

[setxkbmap -option "grp:shifts_toggle"] turns Shift_L into XK_ISO_Prev_Group on
key release, and Shift_R into XK_ISO_Next_Group.

11 years agocheck RECT_INTERSECTS_RECT before using RECT_SET_INTERSECTION
Dana Jansens [Sun, 16 Oct 2011 15:13:14 +0000 (11:13 -0400)]
check RECT_INTERSECTS_RECT before using RECT_SET_INTERSECTION

11 years agoDon't make desktop switching interactive when no mods used. (bug #5203)
Dana Jansens [Sun, 16 Oct 2011 15:10:14 +0000 (11:10 -0400)]
Don't make desktop switching interactive when no mods used. (bug #5203)

Make mod state passing more consistent, and always give actions the full state
instead of stripping sometimes. (They ended up expecting it stripped always).

11 years agoPick the monitor most relevant to a rectangle more cleverly.
Dana Jansens [Sun, 16 Oct 2011 03:04:21 +0000 (23:04 -0400)]
Pick the monitor most relevant to a rectangle more cleverly.

When monitors overlap (this happens with cloning), we were choosing a monitor
to associate with a window, for maximization for example, somewhat arbitrarily.

Now we have a more clever algorithm that considers the configured primary
monitor first, and that does not prefer monitors based on their sizes, but only
only how much of the window is in the monitor, excluding parts that were claimed
by another monitor already.

11 years agoSelect the menu item under the mouse when the mouse is moved (bug #5237)
Dana Jansens [Sat, 15 Oct 2011 00:48:54 +0000 (20:48 -0400)]
Select the menu item under the mouse when the mouse is moved (bug #5237)

11 years agoMake ResizeRelative resize in terms of pixels for windows with resize increments...
Dana Jansens [Fri, 14 Oct 2011 23:42:37 +0000 (19:42 -0400)]
Make ResizeRelative resize in terms of pixels for windows with resize increments (bug #5228)

If the resize is less than the window's resize increment then we bump it up
to ensure a resize does at least happen.

11 years agoMake the inactive osd text color fall back to the old osd property, and lastly inheri...
Dana Jansens [Mon, 8 Aug 2011 19:42:48 +0000 (15:42 -0400)]
Make the inactive osd text color fall back to the old osd property, and lastly inherit from the unfocused window color.

11 years agoAllow an xml tag to be unregistered from the xml parser.
Dana Jansens [Fri, 5 Aug 2011 15:00:53 +0000 (11:00 -0400)]
Allow an xml tag to be unregistered from the xml parser.

11 years agoFix release scripts: test en .po files for correct version. correctly find previous...
Dana Jansens [Wed, 3 Aug 2011 21:26:43 +0000 (17:26 -0400)]
Fix release scripts: test en .po files for correct version. correctly find previous version tag in git and display it.

11 years agoFix prompt cleanup (was not going through the list correctly when freeing items)
Dana Jansens [Tue, 2 Aug 2011 19:53:42 +0000 (15:53 -0400)]
Fix prompt cleanup (was not going through the list correctly when freeing items)

11 years agoCreate some Openbox release scripts:
Dana Jansens [Mon, 4 Oct 2010 18:33:16 +0000 (14:33 -0400)]
Create some Openbox release scripts:

release/bugs: Prints a list of bugs that are mentioned in git commits for a
  git revision, since previous release.
  - Very useful for updating the CHANGELOG file!

release/go: Tests a git revision for correct compilation, and prepares files
  for release.
  - Makes the tarball
  - Makes a GPG signature for the tarball
  - Tags the release
  - Spits out URLs to edit and gives the changelog for copy/paste.

release/email: Sends an email to the Openbox mailing list with the changelog
  and details about the release.  Call this with the same parameters used for
  running release/go once it is finished, and the files are uploaded, etc.
  - Also emails mikachu re freshmeat.net

11 years agoAllow client destroy notify functions to be removed based on the data associated...
Dana Jansens [Fri, 29 Jul 2011 19:59:22 +0000 (15:59 -0400)]
Allow client destroy notify functions to be removed based on the data associated with them.

11 years agoProperly build path names for TryExec
Dana Jansens [Sun, 24 Jul 2011 23:29:26 +0000 (19:29 -0400)]
Properly build path names for TryExec

11 years agoadd menu_sort_entries() which sorts all entries in an ObMenu
Dana Jansens [Thu, 27 Jan 2011 22:30:45 +0000 (17:30 -0500)]
add menu_sort_entries() which sorts all entries in an ObMenu

this function sorts each group of entries that appear together between two
consecutive separators (or ends of the list)

11 years agoAdd another BSEARCH function that lets you search through an array of objects.
Dana Jansens [Thu, 27 Jan 2011 22:23:47 +0000 (17:23 -0500)]
Add another BSEARCH function that lets you search through an array of objects.

If you give it a value x, the macro lets you pull a value out of each object
that you want to compare to x.

11 years agoskip empty strings when splitting paths in the environment
Dana Jansens [Tue, 25 Jan 2011 18:32:43 +0000 (13:32 -0500)]
skip empty strings when splitting paths in the environment

11 years agohide the menus before shutting them down on reconfigure
Dana Jansens [Mon, 24 Jan 2011 22:00:41 +0000 (17:00 -0500)]
hide the menus before shutting them down on reconfigure

11 years agoFix for when the menu's update function returns FALSE and no menu is shown.
Dana Jansens [Mon, 24 Jan 2011 21:45:56 +0000 (16:45 -0500)]
Fix for when the menu's update function returns FALSE and no menu is shown.

The ObMenuFrame was not being freed, and the child pointer was being left
pointing to the frame that was not visible.

12 years agoQuiet build outbut on by default
Dana Jansens [Mon, 17 Oct 2011 19:48:31 +0000 (15:48 -0400)]
Quiet build outbut on by default

12 years agoFix window width/height going less than 1 on some platforms (bug #5246)
Dana Jansens [Sun, 16 Oct 2011 14:50:51 +0000 (10:50 -0400)]
Fix window width/height going less than 1 on some platforms (bug #5246)

12 years agoignore .rej files
Dana Jansens [Sun, 16 Oct 2011 02:45:03 +0000 (22:45 -0400)]
ignore .rej files

12 years agoFix maximized windows and such after screen resizings
Dana Jansens [Sun, 16 Oct 2011 01:04:54 +0000 (21:04 -0400)]
Fix maximized windows and such after screen resizings

12 years agoHear screen resizes when they don't change the root window (cloning)
Dana Jansens [Sun, 16 Oct 2011 01:04:21 +0000 (21:04 -0400)]
Hear screen resizes when they don't change the root window (cloning)

12 years agoCheck the return value for launching the startup command.
Dana Jansens [Sat, 15 Oct 2011 19:37:58 +0000 (15:37 -0400)]
Check the return value for launching the startup command.

Copy/paste error?

12 years agoFixes for gnome-session 3.
Dana Jansens [Sat, 15 Oct 2011 19:07:59 +0000 (15:07 -0400)]
Fixes for gnome-session 3.

We run by default with a panel (default gnome-panel) and then run Openbox
without any panel if one cannot be found.

- Adds a fallback session for if a panel (default gnome-panel) not found.
- Removes notifications as a requirement.  Seems to be a legacy thing judging
  from the ubuntu .session files.  Notifications are being provided by
  notify-osd on modern systems, and you can't check for its presence in
  gnome-session (gnome-classic.session always fails because it looks for it, so
  ubuntu falls back to gnome-fallback.session).

12 years agoRemove unused variable
Dana Jansens [Sat, 15 Oct 2011 17:42:30 +0000 (13:42 -0400)]
Remove unused variable

12 years agorespect the active/mouse options for monitor placement, and use ObMonitorPlace for...
Dana Jansens [Sun, 16 Oct 2011 00:07:57 +0000 (20:07 -0400)]
respect the active/mouse options for monitor placement, and use ObMonitorPlace for per-app too

12 years agoAllow per-app settings to pick a monitor for a window without choosing a position...
Dana Jansens [Fri, 14 Oct 2011 23:24:45 +0000 (19:24 -0400)]
Allow per-app settings to pick a monitor for a window without choosing a position in it.

12 years agoAdd "active" and "primary" options to the <monitor> placement option for per-app...
Dana Jansens [Fri, 14 Oct 2011 23:12:11 +0000 (19:12 -0400)]
Add "active" and "primary" options to the <monitor> placement option for per-app settings (bug #5180)

12 years agomake undecorated windows place according to their undecorated state (bug #5179)
Dana Jansens [Fri, 14 Oct 2011 22:54:32 +0000 (18:54 -0400)]
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.