summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
AgeCommit message (Collapse)Author
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?
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)