12 years agoAdd a new ObtLink type, which is going to be a generalization of a .desktop entry.
Dana Jansens [Fri, 26 Mar 2010 01:10:45 +0000 (21:10 -0400)]
Add a new ObtLink type, which is going to be a generalization of a .desktop entry.

Move the .desktop file parsing details into obt/ddparse.c, which generates
  some hash tables holding the data of the file.
Add a new obt/link.c which will build an ObtLink from a parsed .desktop file,
  and may support other ways to create these links in the unforseeable future

12 years agoignore the rendertest executable
Dana Jansens [Fri, 26 Mar 2010 01:09:20 +0000 (21:09 -0400)]
ignore the rendertest executable

12 years agoignore generated autostart script
Dana Jansens [Fri, 26 Mar 2010 01:08:55 +0000 (21:08 -0400)]
ignore generated autostart script

12 years agosave key values based on their value, but we dont know what values they have yet
Dana Jansens [Thu, 25 Mar 2010 23:31:57 +0000 (19:31 -0400)]
save key values based on their value, but we dont know what values they have yet

12 years agoadd an empty function to parse the Desktop Entry group in a .desktop file
Dana Jansens [Thu, 25 Mar 2010 02:09:58 +0000 (22:09 -0400)]
add an empty function to parse the Desktop Entry group in a .desktop file

12 years agoparse key/value pairs from the .desktop file and save them in a hashtable
Dana Jansens [Thu, 25 Mar 2010 01:58:49 +0000 (21:58 -0400)]
parse key/value pairs from the .desktop file and save them in a hashtable

12 years agoclose the .desktop file after parsing it
Dana Jansens [Thu, 25 Mar 2010 01:58:32 +0000 (21:58 -0400)]
close the .desktop file after parsing it

12 years agofree the path after done with it
Dana Jansens [Thu, 25 Mar 2010 01:50:10 +0000 (21:50 -0400)]
free the path after done with it

12 years agog_warning adds a \n
Dana Jansens [Thu, 25 Mar 2010 01:37:41 +0000 (21:37 -0400)]
g_warning adds a \n

12 years agowatch for groups in .desktop files and remember the current group. validate the names...
Dana Jansens [Thu, 25 Mar 2010 00:04:41 +0000 (20:04 -0400)]
watch for groups in .desktop files and remember the current group. validate the names, and make sure no duplicates and "Desktop Entry" comes first

12 years agoavoid ascii control characters in strings
Dana Jansens [Wed, 24 Mar 2010 23:49:23 +0000 (19:49 -0400)]
avoid ascii control characters in strings

12 years agoadd beginning of .desktop file parsing, grabs a line of text from the input file...
Dana Jansens [Wed, 24 Mar 2010 02:17:06 +0000 (22:17 -0400)]
add beginning of .desktop file parsing, grabs a line of text from the input file at a time and strips out any \0 characters

12 years agomake enum values match numbers in the spec, and make the .desktop file reader functio...
Dana Jansens [Wed, 24 Mar 2010 02:15:12 +0000 (22:15 -0400)]
make enum values match numbers in the spec, and make the .desktop file reader function take a list of paths to look for the file in

12 years agoinstall the obt/ddfile.h header
Dana Jansens [Wed, 24 Mar 2010 02:14:33 +0000 (22:14 -0400)]
install the obt/ddfile.h header

12 years agoadd function to give the list of autostart directories
Dana Jansens [Wed, 24 Mar 2010 00:22:11 +0000 (20:22 -0400)]
add function to give the list of autostart directories

12 years agoadd some functions for parsing a value in a .desktop file
Dana Jansens [Wed, 24 Mar 2010 00:12:16 +0000 (20:12 -0400)]
add some functions for parsing a value in a .desktop file

12 years agoallow non-normal windows to go to 0,0. and remove a debugging g_print
Dana Jansens [Tue, 23 Mar 2010 21:00:01 +0000 (17:00 -0400)]
allow non-normal windows to go to 0,0.  and remove a debugging g_print

12 years agoAdd menu seperator style to Clearlooks
David Barr [Tue, 9 Mar 2010 12:00:02 +0000 (13:00 +0100)]
Add menu seperator style to Clearlooks

The default themerc is quite old and does not include the slightly newer
option to theme the menu seperator, here is a patch to fix that and some
very trivial tweaks to overall theme to better match the metacity/gtk

12 years agoadd a function client_is_oldfullscreen() that determines if a window is an "oldschool...
Dana Jansens [Mon, 1 Mar 2010 21:30:06 +0000 (16:30 -0500)]
add a function client_is_oldfullscreen() that determines if a window is an "oldschool fullscreen window" or not.  use this throughout.  and allow oldschool fullscreen windows to move to 0,0 even with a strut there.

12 years agowhen an app tries to move to 0,0 and there is a strut there (java swing!), move it...
Dana Jansens [Mon, 1 Mar 2010 20:55:27 +0000 (15:55 -0500)]
when an app tries to move to 0,0 and there is a strut there (java swing!), move it to inside the strut instead (unless it is an oldschool fullscreen app)

12 years agomissing a g_slice_free
Dana Jansens [Fri, 26 Feb 2010 20:36:44 +0000 (15:36 -0500)]
missing a g_slice_free

12 years agolibexecdir is provided by automake, and gnome-settings-daemon is not always in /usr...
Dana Jansens [Wed, 24 Feb 2010 18:27:30 +0000 (13:27 -0500)]
libexecdir is provided by automake, and gnome-settings-daemon is not always in /usr/libexecdir, use the dir from automake

12 years agoType is a mandatory field of a .desktop, so add it to the old gnome-interfacing-deskt...
Dana Jansens [Wed, 24 Feb 2010 18:22:55 +0000 (13:22 -0500)]
Type is a mandatory field of a .desktop, so add it to the old gnome-interfacing-desktop file

12 years agoShow client menu on right click anywhere on a window frame (left and right were excluded)
Dana Jansens [Sun, 21 Feb 2010 18:40:01 +0000 (13:40 -0500)]
Show client menu on right click anywhere on a window frame (left and right were excluded)

12 years agoAdded shade-icon to client-menu
Tobias Gläßer [Sun, 21 Feb 2010 15:01:49 +0000 (16:01 +0100)]
Added shade-icon to client-menu

12 years agomake array large enough
Dana Jansens [Fri, 19 Feb 2010 22:17:14 +0000 (17:17 -0500)]
make array large enough

12 years agoget the modifier mask for a modifier key that is pressed/released more accurately...
Dana Jansens [Fri, 19 Feb 2010 21:58:33 +0000 (16:58 -0500)]
get the modifier mask for a modifier key that is pressed/released more accurately, using the table we built already for other purposes

12 years agosave the state of the modifiers only when starting an interactive action
Dana Jansens [Fri, 19 Feb 2010 20:53:36 +0000 (15:53 -0500)]
save the state of the modifiers only when starting an interactive action

12 years agomove the startup command launching into a helper function
Dana Jansens [Wed, 17 Feb 2010 21:15:08 +0000 (16:15 -0500)]
move the startup command launching into a helper function

12 years agorevamp the autostart functionality, so autostart apps launch after openbox.
Dana Jansens [Wed, 17 Feb 2010 21:11:36 +0000 (16:11 -0500)]
revamp the autostart functionality, so autostart apps launch after openbox.

add /usr/libexec/openbox-autostart which runs the global/user scripts and
  launches /usr/libexec/openbox-xdg-autostart (which runs .desktop autostart

make openbox-session call openbox with --startup option, to make openbox launch
  /usr/libexec/openbox-autostart *after* it is initialized.

add /etc/xdg/openbox/environment and ~/.config/openbox/environment files to let
  user change environment variables (locale) for their Openbox session, which
  openbox-session loads before running openbox.

12 years agodon't use a variable as a format string
Dana Jansens [Wed, 17 Feb 2010 16:44:12 +0000 (11:44 -0500)]
don't use a variable as a format string

12 years agoAdd skeleton for start of dot-desktop-file parser
Dana Jansens [Wed, 17 Feb 2010 03:08:03 +0000 (22:08 -0500)]
Add skeleton for start of dot-desktop-file parser

12 years agolower the default submenu show delay
Dana Jansens [Tue, 16 Feb 2010 13:19:00 +0000 (08:19 -0500)]
lower the default submenu show delay

12 years agoa couple more g_free() to g_slice_free()'s
Dana Jansens [Tue, 16 Feb 2010 21:41:21 +0000 (16:41 -0500)]
a couple more g_free() to g_slice_free()'s

12 years agomore using g_slice_new() instead of g_new()
Dana Jansens [Tue, 16 Feb 2010 21:26:18 +0000 (16:26 -0500)]
more using g_slice_new() instead of g_new()

12 years agomissed a g_free() that should be g_slice_free()
Dana Jansens [Tue, 16 Feb 2010 21:04:47 +0000 (16:04 -0500)]
missed a g_free() that should be g_slice_free()

12 years agodont trust the _NET_ACTIVE_WINDOW timestamp. (fixes bug #4519)
Dana Jansens [Mon, 15 Feb 2010 17:33:33 +0000 (12:33 -0500)]
dont trust the _NET_ACTIVE_WINDOW timestamp. (fixes bug #4519)

if we decide to focus the window, do not use their provided timestamp.
chromium gives a very old timestamp, which means we think we're focusing the
window but it never actually gets focus, leading to inconsistent behaviour by
openbox.  use the timestamp for making decisions about passing focus if you
want (we dont right now), but not for the XSetInputFocus call.

12 years agoRemove mismerge-added files
Mikael Magnusson [Sat, 13 Feb 2010 02:43:56 +0000 (03:43 +0100)]
Remove mismerge-added files

12 years agoinclude imlib2 as a dep of obrender in the pkg-config file if it's using it
Dana Jansens [Fri, 12 Feb 2010 20:13:39 +0000 (15:13 -0500)]
include imlib2 as a dep of obrender in the pkg-config file if it's using it

12 years agomake the obt .pc file do -lobt, not -lobrender
Dana Jansens [Fri, 12 Feb 2010 20:09:03 +0000 (15:09 -0500)]
make the obt .pc file do -lobt, not -lobrender

12 years agoremove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functi...
Dana Jansens [Fri, 12 Feb 2010 19:36:53 +0000 (14:36 -0500)]
remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible

12 years agouse g_slice_new() instead of g_new() part 4
Dana Jansens [Fri, 12 Feb 2010 19:13:32 +0000 (14:13 -0500)]
use g_slice_new() instead of g_new() part 4

12 years agouse g_slice_new() instead of g_new() part 3
Dana Jansens [Fri, 12 Feb 2010 19:03:24 +0000 (14:03 -0500)]
use g_slice_new() instead of g_new() part 3

12 years agouse g_slice_new() instead of g_new() part 2
Dana Jansens [Fri, 12 Feb 2010 18:55:26 +0000 (13:55 -0500)]
use g_slice_new() instead of g_new() part 2

12 years agousing g_slice_new() instead of g_new() part 1
Dana Jansens [Fri, 12 Feb 2010 18:44:10 +0000 (13:44 -0500)]
using g_slice_new() instead of g_new() part 1

12 years agohave obt refresh the xlib keyboard stuff on mappingnotify events
Dana Jansens [Fri, 12 Feb 2010 18:31:49 +0000 (13:31 -0500)]
have obt refresh the xlib keyboard stuff on mappingnotify events

12 years agodestroy XIC's that belong to an XIM before closing the XIM, else Xlib will seggie!
Dana Jansens [Fri, 12 Feb 2010 13:11:27 +0000 (08:11 -0500)]
destroy XIC's that belong to an XIM before closing the XIM, else Xlib will seggie!

12 years agoCheck node->name for null
Mikael Magnusson [Fri, 12 Feb 2010 04:05:40 +0000 (05:05 +0100)]
Check node->name for null

Seems to happen sometimes with a well placed xml comment.

12 years agodont print warnings when reading keys which dont generate text
Dana Jansens [Thu, 11 Feb 2010 20:15:01 +0000 (15:15 -0500)]
dont print warnings when reading keys which dont generate text

12 years agomake control keys work in menus/dialogs/etc with the new obt code, using XLookup...
Dana Jansens [Thu, 11 Feb 2010 20:05:16 +0000 (15:05 -0500)]
make control keys work in menus/dialogs/etc with the new obt code, using XLookup stuff

12 years agoinitialize the action shutdown function to NULL
Dana Jansens [Thu, 11 Feb 2010 19:58:53 +0000 (14:58 -0500)]
initialize the action shutdown function to NULL

12 years agopass an input context to the interactive input function
Dana Jansens [Thu, 11 Feb 2010 19:39:09 +0000 (14:39 -0500)]
pass an input context to the interactive input function

12 years agomake menu input work with the new obt keyboard stuff.
Dana Jansens [Thu, 11 Feb 2010 19:17:59 +0000 (14:17 -0500)]
make menu input work with the new obt keyboard stuff.

create an Input Context for use during keyboard grabs, and use this to
  translate KeyPress events properly.
make the menu respond to KeyPress events, since these are the only ones that
  can be translated properly, but still execute things from KeyRelease events

12 years agomake the menu use the new obt stuff when reading keyboard input so it can handle...
Dana Jansens [Thu, 11 Feb 2010 18:59:15 +0000 (13:59 -0500)]
make the menu use the new obt stuff when reading keyboard input so it can handle input from the non-base group and composed input

12 years agomake obt translate keypress events to a valid utf8 character (note this makes openbox...
Dana Jansens [Thu, 11 Feb 2010 16:46:46 +0000 (11:46 -0500)]
make obt translate keypress events to a valid utf8 character (note this makes openbox not compile)

12 years agodon't strip the state for keyboard events
Dana Jansens [Thu, 11 Feb 2010 18:23:54 +0000 (13:23 -0500)]
don't strip the state for keyboard events

this allows translation of keys not in the base keyboard layout

12 years agoadd interface in obt to create an Input Context for a window
Dana Jansens [Thu, 11 Feb 2010 16:27:36 +0000 (11:27 -0500)]
add interface in obt to create an Input Context for a window

12 years agocreate an X Input Method in obt for the app to use for all input
Dana Jansens [Thu, 11 Feb 2010 16:16:17 +0000 (11:16 -0500)]
create an X Input Method in obt for the app to use for all input

12 years agoget xlib to reload the keyboard on MappingNotify events
Dana Jansens [Thu, 11 Feb 2010 16:00:41 +0000 (11:00 -0500)]
get xlib to reload the keyboard on MappingNotify events

12 years agoXKB header comes from obt
Dana Jansens [Thu, 11 Feb 2010 15:58:47 +0000 (10:58 -0500)]
XKB header comes from obt

12 years agocheck the xkb version before using it
Dana Jansens [Thu, 11 Feb 2010 15:58:16 +0000 (10:58 -0500)]
check the xkb version before using it

12 years agomake the execute action not segfault when using a prompt (bug #4543)
Dana Jansens [Thu, 11 Feb 2010 15:25:35 +0000 (10:25 -0500)]
make the execute action not segfault when using a prompt (bug #4543)

also save the client when using a prompt so it can be used if you choose "yes" from the prompt

12 years agoadd an optional shutdown function which actions can register
Dana Jansens [Thu, 11 Feb 2010 15:25:22 +0000 (10:25 -0500)]
add an optional shutdown function which actions can register

12 years agoi learnt what xkb does with the state.
Dana Jansens [Wed, 10 Feb 2010 02:03:01 +0000 (21:03 -0500)]
i learnt what xkb does with the state.

use the state from keyrelease events directly, rather than query the state (which is not as accurate!)

the xkb state (as opposed to the normally sent compat state) contains extra info like the keyboard group, the pointer buttons, etc.  so we can just strip that stuff out. (See section 2.2.2 of the XKB proto document)

12 years agodont assert when there is no valid key layout present
Dana Jansens [Tue, 9 Feb 2010 00:29:02 +0000 (19:29 -0500)]
dont assert when there is no valid key layout present

12 years agoUse correct ac variable in version.h.in
Mikael Magnusson [Wed, 10 Feb 2010 01:29:53 +0000 (02:29 +0100)]
Use correct ac variable in version.h.in

12 years agodon't link libobt into libobrender
Dana Jansens [Tue, 9 Feb 2010 15:59:58 +0000 (10:59 -0500)]
don't link libobt into libobrender

it makes "warning relinking" weird things happen when doing make install.
we already list it as dependency in the pkgconfig file anyway

12 years agofixing up obxprop manpage
Dana Jansens [Mon, 8 Feb 2010 20:04:35 +0000 (15:04 -0500)]
fixing up obxprop manpage

12 years agoMerge branch 'backport' into work
Dana Jansens [Mon, 8 Feb 2010 19:28:18 +0000 (14:28 -0500)]
Merge branch 'backport' into work

12 years agoadd doc/obxprop.1 to gitignore
Dana Jansens [Mon, 8 Feb 2010 19:27:49 +0000 (14:27 -0500)]
add doc/obxprop.1 to gitignore

12 years agoAdd obxprop manpage to install
Dana Jansens [Mon, 8 Feb 2010 19:17:09 +0000 (14:17 -0500)]
Add obxprop manpage to install

12 years agoUpdate the manpage for obxprop
Dana Jansens [Mon, 8 Feb 2010 18:55:29 +0000 (13:55 -0500)]
Update the manpage for obxprop

Specify that it allows you to specify properties on the command line.
Update the variable names to _OB_APP_*.

12 years agoMerge branch 'backport' into work
Dana Jansens [Fri, 5 Feb 2010 18:47:58 +0000 (13:47 -0500)]
Merge branch 'backport' into work

12 years agoInit all fonts to NULL, so if they arent in the config they use the default font
Dana Jansens [Thu, 28 Jan 2010 13:37:18 +0000 (08:37 -0500)]
Init all fonts to NULL, so if they arent in the config they use the default font

12 years agoAdd a hook to unset the client in the open menu frame instead of closing it
Mikael Magnusson [Mon, 18 Jan 2010 15:48:00 +0000 (16:48 +0100)]
Add a hook to unset the client in the open menu frame instead of closing it

Also nukes menu_frame_hide_all_client() as it is now unused.

12 years agoDon't close the menu when you held control even for execute
Mikael Magnusson [Mon, 18 Jan 2010 15:48:27 +0000 (16:48 +0100)]
Don't close the menu when you held control even for execute

12 years agoDon't alt-tab to skip_taskbar iconic windows if they have parents
Mikael Magnusson [Sat, 16 Jan 2010 18:32:44 +0000 (19:32 +0100)]
Don't alt-tab to skip_taskbar iconic windows if they have parents

12 years agomake xdg-autostart use the OPENBOX environment by default, so you can say OnlyShowIn...
Dana Jansens [Thu, 28 Jan 2010 01:01:24 +0000 (20:01 -0500)]
make xdg-autostart use the OPENBOX environment by default, so you can say OnlyShowIn=OPENBOX in a .desktop and it will work as expected

12 years agoFix bug #4492 better, the test in openbox-gnome-session needs to be inverted
Dana Jansens [Sun, 24 Jan 2010 05:07:56 +0000 (00:07 -0500)]
Fix bug #4492 better, the test in openbox-gnome-session needs to be inverted

12 years agoadjust who shows up in the alt-tab list using SKIP_TASKBAR (Fixes bug #4503)
Dana Jansens [Mon, 18 Jan 2010 21:08:23 +0000 (16:08 -0500)]
adjust who shows up in the alt-tab list using SKIP_TASKBAR (Fixes bug #4503)

allow window types != NORMAL to not show up in the alt-tab list
but don't allow DIALOG types to hide from the list
also any window which is DEMANDS_ATTENTION should appear in the list regardless
  of its SKIP_TASKBAR status

12 years agodon't use client_move() to end a move
Dana Jansens [Fri, 15 Jan 2010 22:49:54 +0000 (17:49 -0500)]
don't use client_move() to end a move

client_move() uses the client's current width/height, whereas all along we
  were using the width/height the client had at the start, so this causes
  client_configure() to behave differently at the end than during the move

12 years agoallow multiple escaped _'s in a menu label, and allow a real _ to come later in the...
Dana Jansens [Fri, 15 Jan 2010 21:40:29 +0000 (16:40 -0500)]
allow multiple escaped _'s in a menu label, and allow a real _ to come later in the label (Fixes bug #4355).

12 years agomake edge detection for maximized windows only look at the edges of screens
Dana Jansens [Fri, 15 Jan 2010 21:15:05 +0000 (16:15 -0500)]
make edge detection for maximized windows only look at the edges of screens

12 years agocatch the SIGTTOU and SIGTTIN signals when an app we launch tries to use its stdin...
Dana Jansens [Fri, 15 Jan 2010 20:48:56 +0000 (15:48 -0500)]
catch the SIGTTOU and SIGTTIN signals when an app we launch tries to use its stdin/out (but we don't have one either).  Fixes bug #4072.

12 years agoif we get an event on a subwindow of root that we don't know about, but it is related...
Dana Jansens [Fri, 15 Jan 2010 20:07:42 +0000 (15:07 -0500)]
if we get an event on a subwindow of root that we don't know about, but it is related to a press we received on the root window, then process the event (Fixes bug #3702)

12 years agoRemember the maximized state of a window when it goes fullscreen and try restore...
Dana Jansens [Fri, 15 Jan 2010 19:50:36 +0000 (14:50 -0500)]
Remember the maximized state of a window when it goes fullscreen and try restore it after

12 years agoIf a window places itself at (0,0) and there are struts there, assume it is a bug...
Dana Jansens [Thu, 14 Jan 2010 23:38:40 +0000 (18:38 -0500)]
If a window places itself at (0,0) and there are struts there, assume it is a bug.  Also allow oldschool fullscreen windows that cover all monitors on a multihead setup to work properly

Added a test 'oldfullscreen' that makes a oldschool fullscreen window

12 years agoallow app rules to match windows by their title when mapping
Dana Jansens [Thu, 14 Jan 2010 22:24:39 +0000 (17:24 -0500)]
allow app rules to match windows by their title when mapping

and save the title in the _OB_APP_TITLE property

12 years agoif openbox isn't running, show messages on the console rather than just losing them...
Dana Jansens [Thu, 14 Jan 2010 21:53:32 +0000 (16:53 -0500)]
if openbox isn't running, show messages on the console rather than just losing them (like when another WM is running)

12 years agoMerge branch 'backport' into work
Dana Jansens [Thu, 14 Jan 2010 21:19:57 +0000 (16:19 -0500)]
Merge branch 'backport' into work



12 years agoUpdate hungarian translation.
Laszlo Dvornik [Fri, 8 Jan 2010 21:40:40 +0000 (22:40 +0100)]
Update hungarian translation.

12 years agoPrefer to use larger images and scale down than to scale up (more distortion)
Dana Jansens [Thu, 14 Jan 2010 20:03:06 +0000 (15:03 -0500)]
Prefer to use larger images and scale down than to scale up (more distortion)

12 years agodon't resize the label to 0
Dana Jansens [Thu, 14 Jan 2010 19:57:18 +0000 (14:57 -0500)]
don't resize the label to 0

12 years agoFixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script
Dana Jansens [Tue, 12 Jan 2010 18:59:25 +0000 (13:59 -0500)]
Fixes bug #4492 (mis-using the return value of grep -q in openbox-gnome-session script

12 years agoremove the session.c file from actions, as it is no longer used
Dana Jansens [Tue, 12 Jan 2010 15:03:22 +0000 (10:03 -0500)]
remove the session.c file from actions, as it is no longer used

12 years agoNULL ic when we failed to load an image
Mikael Magnusson [Mon, 11 Jan 2010 21:48:06 +0000 (22:48 +0100)]
NULL ic when we failed to load an image

12 years agoMerge branch 'backport' into work
Dana Jansens [Mon, 11 Jan 2010 21:20:53 +0000 (16:20 -0500)]
Merge branch 'backport' into work



12 years agomake focus cycle target fallback work right by going to the next prev window
Dana Jansens [Mon, 11 Jan 2010 20:37:36 +0000 (15:37 -0500)]
make focus cycle target fallback work right by going to the next prev window

12 years agoMake the focus cycle indicator follow target fallback in the popup
Dana Jansens [Mon, 11 Jan 2010 20:35:47 +0000 (15:35 -0500)]
Make the focus cycle indicator follow target fallback in the popup

12 years agoMore work on refreshing the focus cycle dialog when windows are added/removed from...
Dana Jansens [Mon, 11 Jan 2010 20:13:55 +0000 (15:13 -0500)]
More work on refreshing the focus cycle dialog when windows are added/removed from the valid focus order