Commit graph

7199 commits

Author SHA1 Message Date
Dana Jansens
262591ec1a add BSEARCH() macros in obt/bsearch.h that to a binary search on an array, use it when searching for a group in obt_paths_try_exec() 2010-03-29 23:24:15 -04:00
Dana Jansens
3121146ecc parse some of the .desktop stuff into an ObtLink structure
localized names still don't work.
most of the app-specific stuff isn't done yet.
categories aren't handled yet (to only show in/not show in some category)
2010-03-29 22:38:05 -04:00
Dana Jansens
67bed35b7c add obt_paths_try_exec() that will see if an executable exists 2010-03-29 22:32:07 -04:00
Dana Jansens
d356058237 save the LC_MESSAGES locale category 2010-03-29 21:22:19 -04:00
Dana Jansens
d826971d72 if a launch time isnt there (like for client_activate) assume the window launched before the last desktop switch, not after. ie don't change desktops if you're not sure. 2010-03-29 20:37:20 -04:00
Dana Jansens
e7d5ef8418 make keypad enter do the same thing as return 2010-03-25 22:18:37 -04:00
Dana Jansens
11bb31d3bc figure out what type the value should be for each known .desktop key, and watch for invalid keys 2010-03-25 22:04:48 -04:00
Dana Jansens
0d90bd57ab 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
2010-03-25 21:11:15 -04:00
Dana Jansens
fbc0597d3f ignore the rendertest executable 2010-03-25 21:09:20 -04:00
Dana Jansens
1ea83ccff1 ignore generated autostart script 2010-03-25 21:08:55 -04:00
Dana Jansens
749d6f0938 save key values based on their value, but we dont know what values they have yet 2010-03-25 19:31:57 -04:00
Dana Jansens
a1fa5dca08 add an empty function to parse the Desktop Entry group in a .desktop file 2010-03-25 18:11:13 -04:00
Dana Jansens
00fb4d392f parse key/value pairs from the .desktop file and save them in a hashtable 2010-03-25 18:11:13 -04:00
Dana Jansens
448cc6620e close the .desktop file after parsing it 2010-03-25 18:11:13 -04:00
Dana Jansens
159a3cb3b1 free the path after done with it 2010-03-25 18:11:13 -04:00
Dana Jansens
4e70343b3e g_warning adds a \n 2010-03-25 18:11:13 -04:00
Dana Jansens
5ca9c2e03c watch for groups in .desktop files and remember the current group. validate the names, and make sure no duplicates and "Desktop Entry" comes first 2010-03-25 18:11:13 -04:00
Dana Jansens
4968f7c62a avoid ascii control characters in strings 2010-03-25 18:11:13 -04:00
Dana Jansens
70e819a905 add beginning of .desktop file parsing, grabs a line of text from the input file at a time and strips out any \0 characters 2010-03-25 18:11:13 -04:00
Dana Jansens
4f28035639 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 2010-03-25 18:11:13 -04:00
Dana Jansens
1861350f55 install the obt/ddfile.h header 2010-03-25 18:11:13 -04:00
Dana Jansens
4cff6c0e3b add function to give the list of autostart directories 2010-03-25 18:11:13 -04:00
Dana Jansens
0b9910b442 add some functions for parsing a value in a .desktop file 2010-03-25 18:11:13 -04:00
Dana Jansens
e02f788409 allow non-normal windows to go to 0,0. and remove a debugging g_print 2010-03-25 18:11:13 -04:00
David Barr
15d7f7103e 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
version.
2010-03-09 13:01:48 +01:00
Dana Jansens
64adc0eeba 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. 2010-03-01 16:32:27 -05:00
Dana Jansens
28df6162a9 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) 2010-03-01 16:32:23 -05:00
Dana Jansens
cfce98840a missing a g_slice_free 2010-02-26 15:36:44 -05:00
Dana Jansens
daa2e0ab71 libexecdir is provided by automake, and gnome-settings-daemon is not always in /usr/libexecdir, use the dir from automake 2010-02-24 13:32:32 -05:00
Dana Jansens
115039fb49 Type is a mandatory field of a .desktop, so add it to the old gnome-interfacing-desktop file 2010-02-24 13:32:32 -05:00
Dana Jansens
6976f4198b Show client menu on right click anywhere on a window frame (left and right were excluded) 2010-02-21 13:40:22 -05:00
Tobias Gläßer
54a808fe42 Added shade-icon to client-menu 2010-02-21 16:35:30 +01:00
Dana Jansens
59c831642a make array large enough 2010-02-19 17:17:14 -05:00
Dana Jansens
b7ddaa5728 get the modifier mask for a modifier key that is pressed/released more accurately, using the table we built already for other purposes 2010-02-19 16:59:28 -05:00
Dana Jansens
4418e6988b save the state of the modifiers only when starting an interactive action 2010-02-19 15:53:36 -05:00
Dana Jansens
2c5d755bd8 move the startup command launching into a helper function 2010-02-17 16:15:08 -05:00
Dana Jansens
bcc31faf7e 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
  stuff)

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.
2010-02-17 16:11:36 -05:00
Dana Jansens
7d71fb8a77 don't use a variable as a format string 2010-02-17 11:44:12 -05:00
Dana Jansens
4d28614680 Add skeleton for start of dot-desktop-file parser 2010-02-16 22:10:07 -05:00
Dana Jansens
a8554def0e lower the default submenu show delay 2010-02-16 22:00:48 -05:00
Dana Jansens
a891a188d0 a couple more g_free() to g_slice_free()'s 2010-02-16 16:41:21 -05:00
Dana Jansens
d179d6428a more using g_slice_new() instead of g_new() 2010-02-16 16:32:38 -05:00
Dana Jansens
d45af3cb45 missed a g_free() that should be g_slice_free() 2010-02-16 16:04:47 -05:00
Dana Jansens
343ca097f7 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.
2010-02-15 13:48:04 -05:00
Mikael Magnusson
f011ce4c99 Remove mismerge-added files 2010-02-13 03:43:56 +01:00
Dana Jansens
1265a23e53 include imlib2 as a dep of obrender in the pkg-config file if it's using it 2010-02-12 15:13:39 -05:00
Dana Jansens
3f5403a916 make the obt .pc file do -lobt, not -lobrender 2010-02-12 15:09:03 -05:00
Dana Jansens
aeac3b735b remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible 2010-02-12 14:37:33 -05:00
Dana Jansens
e61fd8874a use g_slice_new() instead of g_new() part 4 2010-02-12 14:13:32 -05:00
Dana Jansens
890e13b919 use g_slice_new() instead of g_new() part 3 2010-02-12 14:03:24 -05:00