Commit graph

124 commits

Author SHA1 Message Date
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
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
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
4d28614680 Add skeleton for start of dot-desktop-file parser 2010-02-16 22:10:07 -05:00
Dana Jansens
d179d6428a more using g_slice_new() instead of g_new() 2010-02-16 16:32:38 -05:00
Dana Jansens
3f5403a916 make the obt .pc file do -lobt, not -lobrender 2010-02-12 15:09:03 -05:00
Dana Jansens
890e13b919 use g_slice_new() instead of g_new() part 3 2010-02-12 14:03:24 -05:00
Dana Jansens
98c86118ca have obt refresh the xlib keyboard stuff on mappingnotify events 2010-02-12 13:31:49 -05:00
Dana Jansens
7c2eb3a781 destroy XIC's that belong to an XIM before closing the XIM, else Xlib will seggie! 2010-02-12 09:37:46 -05:00
Mikael Magnusson
aa5394cad2 Check node->name for null
Seems to happen sometimes with a well placed xml comment.
2010-02-12 05:07:44 +01:00
Dana Jansens
35ce211ec3 dont print warnings when reading keys which dont generate text 2010-02-11 15:15:01 -05:00
Dana Jansens
096dad0c6c make control keys work in menus/dialogs/etc with the new obt code, using XLookup stuff 2010-02-11 15:07:08 -05:00
Dana Jansens
41dbce908a make obt translate keypress events to a valid utf8 character (note this makes openbox not compile) 2010-02-11 14:06:00 -05:00
Dana Jansens
8f1ea42bb1 add interface in obt to create an Input Context for a window 2010-02-11 11:27:36 -05:00
Dana Jansens
6e280e9f53 create an X Input Method in obt for the app to use for all input 2010-02-11 11:16:17 -05:00
Dana Jansens
8add92416d check the xkb version before using it 2010-02-11 11:01:18 -05:00
Dana Jansens
e9070fe7da dont assert when there is no valid key layout present 2010-02-09 21:01:58 -05:00
Dana Jansens
6cf3357036 allow app rules to match windows by their title when mapping
and save the title in the _OB_APP_TITLE property
2010-01-14 18:41:21 -05:00
Dana Jansens
567fd15eeb Merge branch 'backport' into work
Conflicts:

	configure.ac
	data/rc.xml
	openbox/client.c
	openbox/event.c
	openbox/focus_cycle.c
	openbox/focus_cycle_popup.c
	openbox/openbox.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	parser/parse.c
	version.h.in
2010-01-11 16:20:53 -05:00
Dana Jansens
7cf9f174db reflect the change that parse.c/h was renamed to xml.c/h in the file header comments 2009-12-28 12:24:08 -06:00
Dana Jansens
ce24cbd045 check more headers before including them 2009-12-21 16:17:48 -05:00
Dana Jansens
b06b684589 rename the obt_parse library to obt_xml (since it is very xml specific) 2009-12-21 14:08:38 -05:00
Dana Jansens
04dc598a1f add obt_parse_save_file() method to the obt parse library 2009-12-21 14:08:38 -05:00
Dana Jansens
7aae8cc526 Set up work for making a 3.5 prerelease.
Set version stuff to 3.5.0-rc1.
Copy the CHANGELOG from 3.4-working.
Rename the obt-4.0 and obrender-4.0 pkgconfig stuff to obt-3.5 and obrender-3.5
Rename the "render" directory to "obrender" so that the public headers can be
  installed in <obrender/*>
2009-12-21 14:08:34 -05:00
Dana Jansens
50d6626811 Merge branch 'backport' into work
Conflicts:

	obt/keyboard.c
	obt/keyboard.h
	openbox/event.c
	openbox/menuframe.c
	openbox/moveresize.c
	openbox/openbox.c
	openbox/screen.c
2009-12-16 15:39:25 -05:00
Dana Jansens
acafa38c8e Merge branch 'backport' into work
Conflicts:
	openbox/config.c
	openbox/event.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	openbox/screen.h
2009-12-11 19:02:11 -05:00
Dana Jansens
84843c3f98 strip leading/trailing whitespace off stuff when reading it from the configs 2009-11-24 19:56:00 -05:00
Mikael Magnusson
fa0ae17adb Make clang happier
Add asserts to default: in switch statements
Store pointed to variables locally so it knows they don't change
Remove some dead assignments
Mark ob_exit_with_error as noreturn
Use "%s", msg instead of just msg to printf style functions
Use the c_pfocus variable
2009-11-07 17:07:05 -05:00
Mikael Magnusson
308478e4a5 Merge branch 'backport' into work
Conflicts:
	openbox/actions/desktop.c
	openbox/client.c
	openbox/event.c
	openbox/extensions.c
	openbox/popup.c
	openbox/screen.c
	parser/parse.c
2009-09-19 15:03:12 +02:00
Mikael Magnusson
e6fea24575 Merge branch 'backport' into work
Conflicts:
	openbox/client.c
	openbox/prop.c
	openbox/prop.h
2008-10-27 00:58:56 +01:00
Dana Jansens
ac255432b4 use g_debug for debug messages 2008-03-02 15:19:09 -05:00
Dana Jansens
da889f0365 set the right version in the new render and obt .pc files 2008-02-27 21:13:45 -05:00
Dana Jansens
97de737767 Merge branch 'backport' into work
Conflicts:

	openbox/menuframe.c
	openbox/prompt.c
	openbox/prop.c
	openbox/prop.h
2008-02-22 12:31:26 -05:00
Mikael Magnusson
9e05faf3d6 () -> (void) also in .h files, and fix a place that gave arguments when it shouldn't have. 2008-02-15 16:47:10 +01:00
Mikael Magnusson
0ffd1ccc47 () -> (void) 2008-02-15 16:21:35 +01:00
Dana Jansens
db49122dec Merge branch 'backport' into work
Conflicts:

	openbox/frame.c
	openbox/menuframe.c
2008-02-15 10:03:55 -05:00
Dana Jansens
de0873824e split the version.h into render/ and obt/ copies, with the appropriate version info 2008-02-02 15:59:44 -05:00
Dana Jansens
1a1619c9a8 make the xerror output more clear, to say when errors are being properly ignored 2008-02-02 14:54:10 -05:00
Dana Jansens
0dc7eca4cd Merge branch 'backport' into work
Conflicts:

	openbox/client.c
	openbox/event.c
	openbox/mouse.c
	openbox/openbox.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	parser/parse.c
	parser/parse.h
2008-02-02 11:37:35 -05:00
Dana Jansens
4764e1805d remove the generated obt's pc file 2008-02-01 00:36:43 -05:00
Mikael Magnusson
90ca468efa Use the # directive to simplify defines. 2008-01-31 12:25:31 -05:00
Dana Jansens
73c9a0e06b make an obt_root() macro 2008-01-31 12:25:31 -05:00
Dana Jansens
2c64fe685e add support for XDG_CACHE_HOME to the obt paths 2008-01-31 12:25:30 -05:00
Dana Jansens
46cf95d36b make menu event handling work more like how other events are handled, less special-casey 2008-01-31 12:25:30 -05:00
Dana Jansens
ea481338b5 make the obt library branch compile again with all the changes merged in from backport 2008-01-20 01:36:56 -05:00
Dana Jansens
8439c393d8 let you make an xevent listener for all windows 2008-01-20 01:36:56 -05:00
Dana Jansens
03f45e79b8 make the xevent stuff work for events from extensions (these go beyond LASTEvent) 2008-01-20 01:36:56 -05:00
Dana Jansens
9f5296fb14 add the xevent callback system to libobt in xevent.[ch] 2008-01-20 01:36:56 -05:00
Dana Jansens
700b2c0aec make the mainloop not depend on an X display, and make it uses the obt_display automatically 2008-01-20 01:36:56 -05:00
Dana Jansens
ef54ca590d initialize the lists to NULL (empty) 2008-01-20 01:36:55 -05:00
Dana Jansens
07d5674d39 move the xdg path stuff into obt/paths.[ch], and make render and openbox use it 2008-01-20 01:36:55 -05:00
Dana Jansens
1a0a1626b6 small api change for parsing 2008-01-20 01:36:55 -05:00
Dana Jansens
c22e6012d1 fix constness 2008-01-20 01:36:55 -05:00
Dana Jansens
edeb0a2727 add obt_parse_tree_from_root and use it, cuz it's nice 2008-01-20 01:36:55 -05:00
Dana Jansens
fdabb69f4f update openbox to use the current parser interface in libobt
there is also some random bug fixes for other libobt stuff in here.
2008-01-20 01:36:55 -05:00
Dana Jansens
0667bbc3e2 add parsing to libobt with a new API! (it is not completely changed/fixedup yet) 2008-01-20 01:36:55 -05:00
Dana Jansens
759e9f58a8 change openbox to use the libotk's keyboard.[ch] stuff instead of the old modkeys.[ch] and some of translate.[ch] 2008-01-20 01:36:55 -05:00
Dana Jansens
1aac72bc4c add keyboard.[ch] to libobt. these are for tracking modifier keys, and translating to/from keycodes/keysyms/modmasks (also include a new obt/internal.h for putting functions that are not public) 2008-01-20 01:36:55 -05:00
Dana Jansens
2f0e73cf9d add functions for setting locale strings (on top of existing functions for setting utf8 strings). they are untested though! wonder if they work? 2008-01-20 01:36:55 -05:00
Dana Jansens
0fcf5ead0f make openbox use the obt prop.c/h stuff
holy search and replace batman
2008-01-20 01:36:54 -05:00
Dana Jansens
6c8acc079a add prop.[ch] to the libobt, but they are not used yet. add a global obt_display which obt can use, and the application. 2008-01-20 01:36:54 -05:00
Dana Jansens
5960d27b1c setup versioning for libotk that is separate from libobrender (and libobparser for now), and bump library versions up to 4.0.
also make the render versioning more explicit that it's for the render library not all of openbox
2008-01-20 01:36:54 -05:00
Dana Jansens
32a92abf75 move the code for tracking what extensions are available on the display into the libobt 2008-01-20 01:36:54 -05:00
Dana Jansens
27274cff9c add G_BEGIN/END_DECLS to the mainloop header 2008-01-20 01:36:54 -05:00
Dana Jansens
a2f5a826a1 move the xerror handling into the libobt 2008-01-20 01:36:54 -05:00
Dana Jansens
452627a51c Move the main loop out into the libobt 2008-01-20 01:36:54 -05:00
Dana Jansens
fe57b2f2f0 more precise includes 2008-01-20 01:36:54 -05:00
Dana Jansens
b3f0cbf766 split the header up for obt 2008-01-20 01:36:54 -05:00
Dana Jansens
ebce321a72 look mom, I made an openbox toolkit 2008-01-20 01:36:53 -05:00