summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
AgeCommit message (Collapse)Author
2007-06-13some typosDana Jansens
2007-06-13plug memory leaks from the new strut codeDana Jansens
2007-06-12include padding in the menu header min widthDana Jansens
2007-06-10cache pipe menus without crashing!Dana Jansens
2007-06-10cache pipe menus until the menus closeDana Jansens
2007-05-29alpha :x not widthDana Jansens
2007-05-29add the rgba alpha to the menu entriesDana Jansens
2007-05-29put an alpha channel in the rgba textureDana Jansens
2007-05-19fix escape's behavior in menus. make static stuff that shouldnt be used by ↵Dana Jansens
others
2007-05-13add grab/ungrab macros so dont need to pass in 10 arguments to ungrab stuff.Dana Jansens
add a confine option to grab_pointer to confine the pointer to the screen, and use that for moveresize
2007-05-13add a commentDana Jansens
2007-05-12ignore enter events on top menu and submenu popupDana Jansens
2007-05-11give different border colors to active and inactive windows. adjust the xml ↵Dana Jansens
theme format a little to make it BETTER. rawr. add some metadata standards too.
2007-05-10checking string length with the wrong textureDana Jansens
2007-05-09fix no more crashing in the client menu.Dana Jansens
2007-05-08update the client menu when you do stuff without closing it.Dana Jansens
but this means we can't use actions in it. oh well? can kill the desktop notifiers now too. yay for more obvious code paths.
2007-05-08ok, so, back out the last commit. owner events are passed thru so we get ↵Dana Jansens
enter/leave notify events. dont change frame decor from button presses during an interactive grab or while a menu is open
2007-05-08why did we pass thru owner events ?? its working without that.. hum..Dana Jansens
and now the frame buttons dont get press hilights while the menu is open
2007-05-07add a notifier for clients changing desktops. use it to update the send-to ↵Dana Jansens
menu if it changes. it does this by closing/opening the menu.. thats about the best we can do tho with this menu code without huge changes
2007-05-07oops hehe. a render call in the loop for debugging was what made it slow. ↵Dana Jansens
anyhow make it even faster by only calling render once too. yay snappiness.
2007-05-07merge in r6153-6154 from the 3.4 branchDana Jansens
2007-05-05changes to the client menu, which entries are there, and reorganizing, and ↵Dana Jansens
renaming. let you highlight disabled menu entries, they just aren't runable of course, and add the activedisabled theme element for these entries. add the all desktops button picture to "All desktops" in the client menu update the themes for the new element, and some changes to make things more readable-better contrast. CLEARLOOKS-OLIVE is now DIFFERENT FROM THE 3.4 BRANCH SO DON'T RE-RUN THEMETOXML ON IT :( :( yeah.. i think that is everything?
2007-05-03don't show the client menu when its for an invalid windowDana Jansens
2007-05-02make submenus open in the same direction as the top level menuDana Jansens
2007-05-02small change to the render API. RrMinsize became RrMinSize. added RrMinWidth ↵Dana Jansens
and RrMinHeight. make focus/desktop popups wider based on the screen size with the old size as a minimum. left-align the desktop dialog.. i think better dialogs would be nice. and to make them hide or something when you switch desktops while switching windows etc.
2007-04-26fix placement of top menusDana Jansens
2007-04-26place the client menu at the top left of the window when opening it with a ↵Dana Jansens
key binding. change how the first menus are placed. place them like other people place menus. maybe this is good, maybe it is bad, we will see..
2007-04-25dont go to disabled menu entries with keyboard shortcutsDana Jansens
fix some rendering of shortcuts
2007-04-25make rendering the shortcuts much fasterDana Jansens
2007-04-25add keyboard shortcuts to the menus. you can specify the shortcut key with & ↵Dana Jansens
even in root menu and stuff
2007-04-24never mind on the hint idea, it was fun while it lasted. at least i know it ↵Dana Jansens
is there now.
2007-04-24add the PointerMotionHintMask everywhere, we dont need every mouse eventDana Jansens
2007-04-23remove windows from the hash on hide, dont readd them again!Dana Jansens
2007-04-22only pass thru events when the menu is open, don't for other stuffDana Jansens
2007-04-22add a comparitor to timers. use this in event.c to let you remove timers ↵Dana Jansens
from the queue selectively for delayed focus
2007-04-22better matching of the menu titles/separators to the themeDana Jansens
2007-04-22give labeled separators bordersDana Jansens
2007-04-22fix a segfaultDana Jansens
2007-04-22better event handling for menusDana Jansens
2007-04-221) get rid of menu titlesDana Jansens
2) let separators have labels, when they have a label, then they will appear like a menu title used to so if you want a menu title, you use a separator in the menu itself at the top more style work may be needed
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?