summaryrefslogtreecommitdiff
path: root/openbox/config.c
AgeCommit message (Collapse)Author
2010-01-14allow app rules to match windows by their title when mappingDana Jansens
and save the title in the _OB_APP_TITLE property
2010-01-10allow application rules to place transient/dialog/splash windows, and allow ↵Dana Jansens
application rules to match only on the role or type if you wish.
2010-01-08Rework the code provided by Kadlcik Libor for loading/showing icons in ↵Dana Jansens
Openbox menus. This changes how the imagecache works, you can load an image into it directly, or you can load it by name (then it will load it from a file on disk). NOTE: The name part is incomplete, as it needs to use the freedesktop.org icon spec to search for the right file. Also to resize it should look for another icon on disk with the same name but different size (icon themes).
2010-01-08This patch implements support for icons in user-defined menus into OpenboxKadlcik Libor
Image loading is done using the Imlib2 library. I chose Imlib2 because it's pretty fast, it's easy to use, supports many file formats (tested xpm, gif, jpeg, png) and doesn't introduce too much bloat (it depends :)). I ported the patch to 3.4.7-pre3 and added some enhancements. Caching is much better now, and icons can be disabled at compile time using --disable-imlib2 option. What's new? Syntax of configuration files (namely rc.xml and menu.xml) has been changed slightly to allow users to associate icons to menu entries. This is done by specifying path to icon file in the new "icon" attribute in "<item>" element, e.g: <item label="Vim" icon="/usr/share/pixmaps/vim-32.xpm"> <action name="Execute"><execute>x-terminal-emulator -T Vim -e vim</execute></action> </item> If user doesn't want to display any icons in his user-defined menus, he/she can disable icons in rc.xml, inside "<menu>" section: <menu> ... <showIcons>no</showIcons> ... </menu> Default value is "yes". (New boolean variable "config_menu_user_show_icons" has been added to source code.) An icon is loaded (using menu_item_attach_icon()) when a new entry of menu is created. Fortunately, I haven't notice any performance problems because of this :).
2010-01-08Merge branch 'backport' into workDana Jansens
Conflicts: Makefile.am openbox/actions/focus.c openbox/config.c openbox/event.c openbox/menuframe.c
2010-01-06Some fixes for the submenu hide delay codeDana Jansens
When nothing in a menu is selected, go back to selecting the open submenu. Adjust the LeaveNotify event handling to only respond when there is not a EnterNotify coming for the same menu frame. Change the default submenu show/hide delays. Have the default values for submenu show/hide match the default rc.xml
2010-01-06improve submenu hide delayAlexey Korop
2009-12-21rename the obt_parse library to obt_xml (since it is very xml specific)Dana Jansens
2009-12-21make a config option for the inactive osd fontDana Jansens
2009-12-18Add a focus option, unfocusOnLeave that removes focus from a window when the ↵Dana Jansens
pointer leaves it This uses the same delay to unfocus as is used for focusing on enter
2009-12-11Merge branch 'backport' into workDana Jansens
Conflicts: openbox/config.c openbox/event.c openbox/prop.c openbox/prop.h openbox/screen.c openbox/screen.h
2009-12-09Add a primaryMonitor config option, where the focus-cycle and keychain ↵Dana Jansens
popups will appear
2009-12-09Set a minimum value for the screenEdgeWarpTime for 25ms.Dana Jansens
When this is very small it just gives X/Openbox a heart attack and ends up going forever. Even 25 is quite too fast to be usuable so it should be a good minimum.
2009-11-21Revert all commits for the Hooks feature to move it to a topic branch.Dana Jansens
This reverts commit fd2f617be7ff57fcb187daa737f66d243544c8cd. This reverts commit a47d0a53652a96ca1df96fc9268757df1431ae55. This reverts commit a1908e076736e1a618bd305c5963dbfecaa30497. This reverts commit dc2e6f6bf7143a56de360a393b33906735e63625. This reverts commit 985e7dadf9a3ebf4bd265d955c3198e96405e5d2. This reverts commit db781556d63d1a50bd1b1b4b6b5423ef703bf2c7. This reverts commit feec8f663f0a11546c2da87575fecc8a88d97ca1.
2009-11-07Make clang happierMikael Magnusson
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-02-20Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/config.c
2009-02-20Fix per-app monitor settingMikael Magnusson
A couple of things were wrong, the parser added 1 to the value despite expecting the user to give values in the range of 1 to screen_num_monitors, rc.xml documented the values to start from 0 and finally the monitor value wasn't copied over at all when matching the client.
2008-04-23Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/config.c openbox/keyboard.c openbox/moveresize.c
2008-04-02Move "if"s out of the loop and rewrite the loop to use parse_find_node() to ↵Kadlcik Libor
search for "file".
2008-03-13Make alt-tab icon size configurable.Mikael Magnusson
2008-02-29Add a hook system. They hooks don't run yet but they parse from the config ↵Dana Jansens
file.
2008-02-21Merge branch 'backport' into workDana Jansens
Conflicts: openbox/openbox.c openbox/session.c
2008-02-21Change all single quotes to double quotes in strings.Mikael Magnusson
2008-02-14Merge branch 'backport' into workDana Jansens
2008-02-14avoid a compiler warningDana Jansens
2008-02-14Merge branch 'backport' into workMikael Magnusson
Diffing against the old work branch where most of the changes in backport were cherry-picked from indicates this should be alright. (0de9097017d4d1991388a35e380a57dc1135b431)
2008-02-14let you match per-app settings based on the window typeDana Jansens
2008-02-14force the resize popup to be on-screen (not negative position)Dana Jansens
2008-02-07Merge branch 'backport' into workDana Jansens
Conflicts: openbox/config.c
2008-02-04Add the manageDesktops option.Mikael Magnusson
2008-02-03allow you to force the position of windows with rc.xml's per-app settings ↵Dana Jansens
with the force="yes" attribute
2008-01-31Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/config.c openbox/event.c openbox/extensions.c openbox/focus_cycle_indicator.c openbox/focus_cycle_popup.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c openbox/stacking.c openbox/startupnotify.c
2008-01-27Change <placeOn> to <monitor>.Mikael Magnusson
2008-01-27replace the <active> placement option with <placeOn>active/mouse/any</placeOn>Dana Jansens
2008-01-25Fix some memleaks.Mikael Magnusson
missing RrFontClose for osd_font in two places. missing a g_free(area);
2008-01-22print a warning when the session has a different number of desktops than the ↵Dana Jansens
openbox config
2008-01-20make the obt library branch compile again with all the changes merged in ↵Dana Jansens
from backport
2008-01-20move the xdg path stuff into obt/paths.[ch], and make render and openbox use itDana Jansens
2008-01-20update openbox to use the current parser interface in libobtDana Jansens
there is also some random bug fixes for other libobt stuff in here.
2008-01-20make openbox use the obt prop.c/h stuffDana Jansens
holy search and replace batman
2008-01-17Remove leftover config_four_corners from config.c.Mikael Magnusson
2008-01-11fix a small bug introduced that broke per-app placementDana Jansens
2008-01-11make a GravityPoint and GravityCoord data structures for those --x, ++y type ↵Dana Jansens
values
2008-01-11let you specify the resize popup to be in a fixed placeDana Jansens
2008-01-11add an <active> option for window placement, to try force new windows on the ↵Dana Jansens
active monitor (for xinerama)
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-09-04Fix shadowed variablesMikael Magnusson
2007-08-06Fix some memleaksMikael Magnusson
2007-08-04make the default time for the desktop notificatin 875msDana Jansens
2007-08-03show a popup notification when switching desktops (also make all the config ↵Dana Jansens
options export time in milliseconds not half milli half micro)