Commit graph

60 commits

Author SHA1 Message Date
Dana Jansens
07fe0980be declare variables at the beginning of blocks, because it is nice to do so. and polite? 2007-03-02 22:11:46 +00:00
Dana Jansens
de383f35f7 no more using SaveUnder for our openbox-specific windows. it makes things actually slow down, believe it or not! 2007-03-02 22:06:13 +00:00
Dana Jansens
78af5d15e9 this includes a number of things since my magnificent return....
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*
2007-03-02 02:23:00 +00:00
Mikael Magnusson
4d50b21835 update copyright step 1 2006-08-22 16:37:35 +00:00
Mikael Magnusson
005eb35ee8 fix some warnings from -Wall 2006-08-19 05:05:36 +00:00
Mikael Magnusson
56c548b203 make menus optionally vertically centered, and enable by default, see bug #2746 2006-08-02 17:25:32 +00:00
Mikael Magnusson
666a466b7e make menus also saveunder 2006-06-16 12:41:39 +00:00
Mikael Magnusson
310d268bf0 patch from syscrash2k, adds submenuShowDelay option, bug #2682 2006-04-22 19:21:06 +00:00
Mikael Magnusson
9609c7f5ec maybe i should have tried opening a submenu too 2005-09-14 17:40:47 +00:00
Mikael Magnusson
fa32adf16c fix menus to show on the screen the mouse cursor spawned them from 2005-09-14 17:05:53 +00:00
Mikael Magnusson
faf325c3fe include config.h 2004-03-21 12:10:10 +00:00
Mikael Magnusson
b2b8ad92bf update copyright notices 2004-03-21 11:57:31 +00:00
Mikael Magnusson
335e8acbfc yay no tabs in the source 2004-03-21 01:03:00 +00:00
Mikael Magnusson
07dd2c6442 fix reversed variable name and add a little comment to the magic menu code 2004-03-20 23:40:29 +00:00
Mikael Magnusson
bc04408517 some nice options for the menus, warpPointer, xorStyle (better name wanted for this :), hilightFirst and hideDelay (this was hardcoded to .25 secs earlier) 2004-03-20 22:53:16 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +00:00
Dana Jansens
b49b7c415c free menuframes when they fail to show themselves 2003-10-11 06:47:11 +00:00
Dana Jansens
b8ba1cff1f perhaps fix problems of being left in menus without being able to control openbox 2003-09-28 09:24:22 +00:00
Dana Jansens
1ee19207fb fix a variable used without being initialized case 2003-09-25 22:00:07 +00:00
Dana Jansens
e5908c3f89 use the new action ru system which always runs lists of actions instead of individual ones 2003-09-19 17:41:05 +00:00
Dana Jansens
16f46c296d no tabs 2003-09-17 07:44:49 +00:00
Dana Jansens
c4e4760c41 add copyright headers, adjust --version output to include copyright, and --help output to not include version output. 2003-09-17 07:32:52 +00:00
Dana Jansens
96f9db0d0c api cleanups for render/theme.h 2003-09-17 06:21:35 +00:00
Dana Jansens
ad7fd99f1d use the theme padding for the menu title's size 2003-09-17 06:10:29 +00:00
Dana Jansens
9decfe0d76 kill the padding in the menu title 2003-09-14 21:33:08 +00:00
Dana Jansens
11e28eaa5c update the menus before putting them in the visible list 2003-09-14 21:06:20 +00:00
Dana Jansens
00f6dea058 keep menus taller than the screen from jittering. also keep the half of the menu you're in visible. more precision would be nicer but meh for now (ever) i guess. 2003-09-10 18:00:08 +00:00
Dana Jansens
0687790236 flush after drawing each menu item 2003-09-08 09:08:36 +00:00
Dana Jansens
420cbea6cc xflush after rendering 2003-09-07 19:04:25 +00:00
Dana Jansens
78282959f9 little bit of an actions overhaul, added action_run* so that duplicated code 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-07 19:03:20 +00:00
Dana Jansens
d989e3c541 oops missed a ! 2003-09-04 02:58:54 +00:00
Dana Jansens
ed9dc5dc78 use the NONE cursor when not specifying one 2003-09-03 20:34:43 +00:00
Dana Jansens
3e7b4478ee track the maximum margin of menu items. use this to keep icons in the menus inside the bevel/borders of the menu items 2003-09-03 09:12:42 +00:00
Dana Jansens
39b3cc1d12 rm empty line 2003-09-03 07:26:44 +00:00
Dana Jansens
8419fe8a11 limit menus' width to 400px 2003-09-03 07:24:39 +00:00
Dana Jansens
02b0b1733a use new menu.bullet.selected.imageColor. use the text colors for the menu mask icons instead of teh bullet color, and set it based on selected/disabled/normal like the text. 2003-09-02 18:53:08 +00:00
Dana Jansens
06252b3076 rename back the app_selected appearances to app_hilite 2003-09-01 16:37:21 +00:00
Dana Jansens
f33bbca9e6 couple more xrdb theme format cleanups:
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-01 07:03:04 +00:00
Dana Jansens
d7b4f1b126 make separators span the width of the entire menu 2003-09-01 02:30:12 +00:00
Dana Jansens
7b06426b51 dont lose the menu selection while puttin the mouse over a separator (properly) 2003-08-31 19:54:34 +00:00
Dana Jansens
49d58ec9ba only hide menus if theyre supposed to when executing 2003-08-31 18:58:10 +00:00
Dana Jansens
a991c07bc1 draw menu separators 2003-08-31 17:04:23 +00:00
Dana Jansens
5d4cbbc674 add suppot for showing pixmap masks in menus where the rgba icons go too 2003-08-30 19:03:06 +00:00
Dana Jansens
6486ba2cd5 add padding in the menu title too 2003-08-30 18:16:36 +00:00
Dana Jansens
3ff8eb037e fix grabbing and not releasing with menus 2003-08-30 05:04:08 +00:00
Dana Jansens
8a1e9c64d8 dont ungrab twice when hiding menus 2003-08-29 17:17:07 +00:00
Dana Jansens
09f4a0c51a dont keyboard nav onto disabled menu items 2003-08-29 08:51:05 +00:00
Dana Jansens
dcdc325f5c ultra-keyboard-controlled-menus 2003-08-29 08:44:55 +00:00
Dana Jansens
db4b0e6270 place submenus with their borders over the parent's 2003-08-29 05:49:30 +00:00
Dana Jansens
700e551390 fix a bunch of memleaks from valgrind and stuff 2003-08-28 19:10:36 +00:00