summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
AgeCommit message (Collapse)Author
2007-03-30the centered menus thing got annoying :|Dana Jansens
2007-03-25open the menu with the mouse cursor just outside the top itemDana Jansens
2007-03-25proper logic for using the menu overlap with middle centered submenus.Dana Jansens
always center top level menus horizontally under the cursor. why is this not normal behavior..?
2007-03-25better placement for top level menus under the mouse cursor. middle ↵Dana Jansens
placement is not used for this now. it was behaving differently than submenus so i'd like to have some consistency
2007-03-25better vertical centering for when "middle" placement is enabled for menusDana Jansens
2007-03-25set up the menu's parent and children stuff before rendering itDana Jansens
2007-03-25don't menu menus jump around at all anymore. open them on screen in the ↵Dana Jansens
first place
2007-03-11wow... this is a big commit...Dana Jansens
all related to _NET_WM_USER_TIME and focus stealing prevention a) add launcher startup notification. this means when you run something from the openbox menu or a key/mouse binding, that startup notification will go on in openbox and other applications like your panel or something b) add the _NET_WM_USER_TIME property for windows c) use the _NET_WM_USER_TIME data and startup notification to prevent focus stealing. d) cookie party !! ! all are invited. e) oh yeah, and pass around timestamps for a lot more things. like, when you run an action, send the timestamp for the event that is running the action. this is important for startup notification. this also affects menus. f) yes.. cookies.. would it be a good idea to disable focus stealing prevention if a window takes too long to load? i mean.. maybe after a certain length of time, a user can't be expected to not do anything in any other windows, but would they still want the new application to focus then? HMM. open question i guess..
2007-03-05scary commit..but here goes.Dana Jansens
YOUR THEMES ARE NOW OFFICIALLY BROKEN. Openbox has just moved it's theme format to an XML based one. The details of this format can be found in data/themerc.xsd (and http://openbox.org/themerc.xsd ALSO! This is very good and important and stuff! In the tools directory you will find THEMETOXML ! This tool takes a themerc on stdin, and spits out the same theme in theme.xml format. So this is all you need to do to update your themes. PLEASE NOTE: This themetoxml does _not_ install itself anywhere. It simply builds and then lives out in its tools/themetoxml directory, and that's it. So if you want to use it, that is where to find it. In moving to the new XML format, a number of additions/changes to the theme engine have been made. Themetoxml takes these into account and will set all the new things appropriately to make your theme look the same as it always has. New additions include.. * padding now has an horizontal and vertical component, instead of being one number * menus can have different borders than windows (color and size) * menu offset can now be negative. it's a little weird, but someone will want it no doubt * fonts are no longer controled by the theme at all, however font shadowing is, and on that note.. * font shadows are now any color you want, not just black and white * you can now set the shadow anywhere you can set the text's color, so you have more control, i.e. you can set shadow on active menu items but not inactive, or disabled, etc. * every color now has an alpha channel. at the moment they don't do anything, besides the font shadow one, but it leaves room for future explorations. it is REALLY HIGHLY RECOMMENDED that you set the alpha to 255 all the time, until such time as it could be useful. otherwise one day your theme may turn awful for people. * font colors are in the range 0-255, in case you were wondering, and they have to be specified in decimal * if you'd like to change you font's you can do so in your configuration file. this is how it is going to stay. changing the font in the theme assumes too much about peoples eye sight and locality and stuff. it doesn't belong there, sorry. the system-wide default rc.xml includes the new font settings for your viewing pleasure, and ill drop an example of it below. * shadows can now be positioned in any direction, they have both an x and a y offset which can be negative and positive. and offset of 0,0 will disable the shadow This isn't a release or anything. If someone had some good ideas about the xml theme format, I'd like to hear them. But I don't think it will be changing much right now beyond where it is. I don't even know how the new functionality will play out for themers, so we'll see. Whew.. I guess that's it. I'm not sure if I mentioned every little change or not, but oh well. Mileage may vary.. Please send any feedback. Here's the font configuration example. Hopefully ObConf will let you set this real soon. <theme> ... <font place="ActiveWindow"> <name>arial,sans</name> <size>7</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="InactiveWindow"> <name>arial,sans</name> <size>7</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="MenuTitle"> <name>arial,sans</name> <size>8</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="MenuItem"> <name>arial,sans</name> <size>8</size> <weight>bold</weight> <slant>normal</slant> </font> </theme>
2007-03-02declare variables at the beginning of blocks, because it is nice to do so. ↵Dana Jansens
and polite?
2007-03-02no more using SaveUnder for our openbox-specific windows. it makes things ↵Dana Jansens
actually slow down, believe it or not!
2007-03-02this includes a number of things since my magnificent return....Dana Jansens
1. some random compiling/style cleanups 2. some bigfixes - mislogic in per-window-settings and focusing new windows - use client_can_focus rather than checking variables for directional focus - MAYBE fix all those lock-ups forever. using event_curtime (a new variable) now instead of event_lasttime. event_lasttime is still used however when the event being processed did not have a time associated with it. this may or may not be a problem, and will be seen. 3. um.. i forget 4. oh yeah, 3rd party docks are now treated like the internal ob dock irt focus. that is, clicking on them won't pass them focus. this is going to be ratified as expected behavior in the wm-spec just now. if docks/panels want focus they can request it with _net_active_window, and then they can have all the focus they want! one day alt-tabbing around dock windows might be nice. but not until the ob dock is moved out into a separate application. going to have to add a wmapp selection and stuff for that though... ugly. who uses wmdockapps anymore !? someone must.. *sigh*
2006-08-22update copyright step 1Mikael Magnusson
2006-08-19fix some warnings from -WallMikael Magnusson
2006-08-02make menus optionally vertically centered, and enable by default, see bug #2746Mikael Magnusson
2006-06-16make menus also saveunderMikael Magnusson
2006-04-22patch from syscrash2k, adds submenuShowDelay option, bug #2682Mikael Magnusson
2005-09-14maybe i should have tried opening a submenu tooMikael Magnusson
2005-09-14fix menus to show on the screen the mouse cursor spawned them fromMikael Magnusson
2004-03-21include config.hMikael Magnusson
2004-03-21update copyright noticesMikael Magnusson
2004-03-21yay no tabs in the sourceMikael Magnusson
2004-03-20fix reversed variable name and add a little comment to the magic menu codeMikael Magnusson
2004-03-20some nice options for the menus, warpPointer, xorStyle (better name wanted ↵Mikael Magnusson
for this :), hilightFirst and hideDelay (this was hardcoded to .25 secs earlier)
2003-10-15consistant glib type usageDana Jansens
2003-10-11free menuframes when they fail to show themselvesDana Jansens
2003-09-28perhaps fix problems of being left in menus without being able to control ↵Dana Jansens
openbox
2003-09-25fix a variable used without being initialized caseDana Jansens
2003-09-19use the new action ru system which always runs lists of actions instead of ↵Dana Jansens
individual ones
2003-09-17no tabsDana Jansens
2003-09-17add copyright headers, adjust --version output to include copyright, and ↵Dana Jansens
--help output to not include version output.
2003-09-17api cleanups for render/theme.hDana Jansens
2003-09-17use the theme padding for the menu title's sizeDana Jansens
2003-09-14kill the padding in the menu titleDana Jansens
2003-09-14update the menus before putting them in the visible listDana Jansens
2003-09-10keep menus taller than the screen from jittering. also keep the half of the ↵Dana Jansens
menu you're in visible. more precision would be nicer but meh for now (ever) i guess.
2003-09-08flush after drawing each menu itemDana Jansens
2003-09-07xflush after renderingDana Jansens
2003-09-07little bit of an actions overhaul, added action_run* so that duplicated code ↵Dana Jansens
can all be in the same place now woot. allow actions to specify when they can be used (ShowMenu cant in the OB_USER_ACTION_MENU_SELECTION case) remove KeyboardMove ad KeyboardResize. Instead, just use Move and Resize and determine if it should be a keyboard move/resize in the code
2003-09-04oops missed a !Dana Jansens
2003-09-03use the NONE cursor when not specifying oneDana Jansens
2003-09-03track the maximum margin of menu items. use this to keep icons in the menus ↵Dana Jansens
inside the bevel/borders of the menu items
2003-09-03rm empty lineDana Jansens
2003-09-03limit menus' width to 400pxDana Jansens
2003-09-02use new menu.bullet.selected.imageColor. use the text colors for the menu ↵Dana Jansens
mask icons instead of teh bullet color, and set it based on selected/disabled/normal like the text.
2003-09-01rename back the app_selected appearances to app_hiliteDana Jansens
2003-09-01couple more xrdb theme format cleanups:Dana Jansens
window.focus.font -> window.label.focus.font window.unfocus.font -> window.label.unfocus.font window.justify -> window.label.justify menu.frame.* -> menu.items.* menu.hilite.* -> menu.selected.* *.picColor -> *.imageColor
2003-09-01make separators span the width of the entire menuDana Jansens
2003-08-31dont lose the menu selection while puttin the mouse over a separator (properly)Dana Jansens
2003-08-31only hide menus if theyre supposed to when executingDana Jansens