Commit graph

3182 commits

Author SHA1 Message Date
Dana Jansens
6005365133 don't steal focus from windows you are typing in, even if the new window is a relative 2008-03-02 13:31:47 -05:00
Mikael Magnusson
664b0b4e94 Don't run actions in If in reverse order. 2008-03-02 13:49:40 +01:00
Mikael Magnusson
610e80e052 Super miniscule optimization. 2008-03-02 13:49:40 +01:00
Dana Jansens
feec8f663f missing a header 2008-03-02 04:19:38 -05:00
Dana Jansens
37705f444e Merge branch 'backport' into work
Conflicts:

	openbox/actions/all.h
	openbox/event.c
	openbox/prompt.c
2008-03-02 04:19:05 -05:00
Dana Jansens
e8ce4dbb8f don't let you use left to go "up to parent" on menus which don't have any parent 2008-03-02 04:16:17 -05:00
Dana Jansens
fc085fd66c make the prompt option default to 'true' for Exit and SessionLogout 2008-03-02 03:46:28 -05:00
Dana Jansens
4d09821730 add a SessionLogout action 2008-03-02 03:46:22 -05:00
Dana Jansens
b20ef1556a remove some debug prints 2008-03-01 11:45:33 -05:00
Dana Jansens
a47d0a5365 queue hooks so that they don't run as each thing happens, instead run them at the end. keep the openbox code paths fast. 2008-03-01 01:52:38 -05:00
Dana Jansens
93a38d46bf make it $pid and $wid, it's a little faster this way and they look the same so why not 2008-03-01 01:30:29 -05:00
Dana Jansens
26cd4d19d4 move some code around in the execute action 2008-03-01 01:21:55 -05:00
Dana Jansens
94d41260a0 instead of passing things to the environment, substitute $pid and $window inline in the Execute command string 2008-03-01 01:05:14 -05:00
Dana Jansens
94c60ba74e pass the targeted window's PID (if available) and WINDOW_ID to the environment of the Execute action 2008-03-01 00:18:33 -05:00
Dana Jansens
a1908e0767 always send the exact client to the hook's actions that the hook fired for 2008-03-01 00:09:20 -05:00
Dana Jansens
dc2e6f6bf7 Get hooks working 2008-03-01 00:04:28 -05:00
Dana Jansens
985e7dadf9 change some of the hooks, and add all the hooks to the code so that they run 2008-02-29 23:40:02 -05:00
Dana Jansens
db781556d6 Add a hook system. They hooks don't run yet but they parse from the config file. 2008-02-29 23:37:57 -05:00
Mikael Magnusson
173b9b7648 Merge branch 'backport' into work
Conflicts:

	openbox/client.c
	openbox/screen.c
2008-02-29 04:21:02 +01:00
Mikael Magnusson
835b2de913 Remove an unused variable. 2008-02-29 03:18:12 +01:00
Mikael Magnusson
ab089515ef Update po/ with new strings, and update swedish translation.
Also add an overly long comment about translating FILE in the help output.
2008-02-28 23:20:49 +01:00
Mikael Magnusson
323df7cbc2 Very inconsequential changes. 2008-02-28 20:57:33 +01:00
Mikael Magnusson
017d956444 Free copied glists when removing desktops. 2008-02-28 20:57:05 +01:00
Dana Jansens
a4a1a667fc If a window is maximized and has FUNC_MAXIMIZE disabled, still let it unmaximize. When normal hints change and we reconfigure, the w/h of the window may not have changed - rather the minw/maxh etc may have changed. So in client_try_configure always run through the code that checks them to see if the client should be resized or whatever. 2008-02-28 12:31:36 -05:00
Mikael Magnusson
7a6485e4bb Update send-to-desktop menu in the client menu when ctrl-clicking and the client is still visible, ie toggling omnipresent.
Also indicates which is the current desktop by moving the omnipresent
icon to it when the window is omnipresent. Do some refactoring and
cleanup so the net change is removal of lines, go me.
2008-02-28 17:54:49 +01:00
Mikael Magnusson
2f1dc6da00 Try to fix the off-by-one errors even more. 2008-02-28 12:42:40 +01:00
Dana Jansens
ff0f8dc6a9 fix some off-by-one errors in edge finding for moving and resizing windows (bug 3506) 2008-02-28 01:20:20 -05:00
Mikael Magnusson
163950b23b Merge branch 'backport' into work
Conflicts:

	Makefile.am
2008-02-28 06:20:50 +01:00
Mikael Magnusson
f857b0eb99 Simplify client_set_state. 2008-02-28 06:18:33 +01:00
Dana Jansens
dbbbbb7d48 When showing a window's title in the kill prompt, if it doesn't have a title use its parent's (same way the focus cycle popup does) 2008-02-27 23:11:08 -05:00
Dana Jansens
1018b836c4 clean up the execute action code, and free the prompt option string 2008-02-27 22:19:59 -05:00
Dana Jansens
92f23264c7 change the yes/no buttons to Exit/Cancel for the exit prompt 2008-02-27 22:14:11 -05:00
Dana Jansens
8bd02bf4b8 Merge branch 'backport' into work
Conflicts:

	openbox/actions/execute.c
2008-02-27 21:07:10 -05:00
Dana Jansens
2c8bc0c904 add a boolean <prompt> option to the Exit action, which will ask before exiting openbox 2008-02-27 20:59:17 -05:00
Dana Jansens
94e339496c Give the Execute action the <prompt> option 2008-02-27 20:59:15 -05:00
Mikael Magnusson
22a88cfe99 Merge branch 'backport' into work
Conflicts:

	openbox/client.c
	openbox/event.c
	openbox/event.h
2008-02-27 02:34:08 -05:00
Dana Jansens
490ef3213a Change the kill prompt buttons to "Cancel" and "End Process"/"Disconnect" (for local/remote apps) 2008-02-26 22:32:20 -05:00
Mikael Magnusson
c38a756ae5 Fix some typos and style in client.c, and add a comment.
Also moves a comment from many places into one place.
2008-02-27 04:34:35 +01:00
Mikael Magnusson
7753be1cb6 Make "Unnamed Window" translatable. 2008-02-27 04:34:35 +01:00
Mikael Magnusson
c11a7c3ce1 Pass TRUE instead of FALSE to do what the comment says. 2008-02-27 04:34:35 +01:00
Mikael Magnusson
04bf68c2ac Various cleanups of event.c
Typo in debug message.
Improve some comments.
Space after comma.
Factor out compress_client_message_event.
Fold two ifs together.
Change duplicated case to fall through.
2008-02-27 04:34:31 +01:00
Mikael Magnusson
ab9233ddb1 Refactor the event handling for titlebar buttons a bit. 2008-02-27 04:20:21 +01:00
Dana Jansens
7e47a57027 Merge branch 'backport' into work 2008-02-26 03:15:21 -05:00
Dana Jansens
1ef0d8eb53 Fixing bug from commit 041d17373e
Pressing a button and leave/enter would cause the button to show hover mode, not pressed mode.  Change the behaviour back to how it used to be for pressing (the button stays pressed when you move outside of its box) and make it work correctly, as commit 041d17373e also did for menus.

Reverting this behaviour because it seems impossible to do the enter/leave stuff correctly for the close button on maximized windows.  Leaving the titlebar contexts doesn't give us an Enter event to go along with it, so even if we check all motion events, the button will flash unpressed when leaving the topright contexts.
2008-02-26 03:12:57 -05:00
Dana Jansens
8387c6cce8 Merge branch 'backport' into work 2008-02-26 01:00:26 -05:00
Dana Jansens
dd97c9beac change the buttons in the kill prompt from "yes/no" which can be a little confusing to be more clear "cancel/force exit" so people won't do the wrong thing by accident so much 2008-02-26 00:59:25 -05:00
Dana Jansens
14b422f9a3 show the desktop change popup before mapping/unmapping all the windows
this makes a big difference if the compmgr is being laggy trying to show windows
2008-02-25 22:16:58 -05:00
Dana Jansens
97de737767 Merge branch 'backport' into work
Conflicts:

	openbox/menuframe.c
	openbox/prompt.c
	openbox/prop.c
	openbox/prop.h
2008-02-22 12:31:26 -05:00
Dana Jansens
d9e6aa5643 Add theme options for menu line separators.
Added:
 menu.separator.color
 menu.separator.width
 menu.separator.padding.width
 menu.separator.padding.height
2008-02-22 12:13:02 -05:00
Dana Jansens
fadc52e186 Allow windows to specify a base-size of 0
This fixes the resize popup for terminal windows, if the base-size was 0, the size popup would be off by one.
2008-02-22 10:52:04 -05:00
Dana Jansens
cd4f325ee7 Let ObPrompts be modal dialogs, and when they are transient for a window, make it transient for its entire group, so it can be stacked at the highest level above other transients 2008-02-22 10:38:14 -05:00
Dana Jansens
198d98986b Merge branch 'backport' into work
Conflicts:

	openbox/openbox.c
	openbox/session.c
2008-02-21 13:24:19 -05:00
Dana Jansens
c49c2a8e40 If multiple key bindings at the same level are not able to be translated, then don't have them conflict and end up removing untranslated bindings from the key tree. This way they can be re-translated later.
This fixes keybindings getting lost when VMWare grabs the keyboard/pointer
2008-02-21 13:00:11 -05:00
Mikael Magnusson
2cb31da22c Change all single quotes to double quotes in strings. 2008-02-21 12:02:18 +01:00
Mikael Magnusson
c1257fb4f9 MoveResizeTo was broken for opposite edges. 2008-02-19 18:44:49 +01:00
Dana Jansens
3263845459 Merge branch 'backport' into work
Conflicts:

	openbox/grab.c
	openbox/keyboard.c
2008-02-18 20:43:18 -05:00
Dana Jansens
041d17373e Fix button press behaviours. On LeaveNotify, make the button no longer pressed. On MotionNotify, only make it hovered if no button is pressed down. On EnterNotify, make it hovered or pressed as appropriate.
This fixes case where you left-click and hold on a button, then right click to open the menu - this used to leave the button in a pressed state.
2008-02-18 20:42:35 -05:00
Dana Jansens
5bfa48dcff Grab key bindings with GrabModeSync, so that if they lead to a keyboard grab, then no keyboard events will be lost between the initial keybinding and the keyboard grab. 2008-02-18 20:42:35 -05:00
Dana Jansens
58788c7817 the focus indicator line for prompt buttons wasn't being displayed, since the texture type was no longer being set 2008-02-18 20:42:35 -05:00
Mikael Magnusson
71940dae6f Fix some typos in comments. 2008-02-17 19:14:59 +01:00
Mikael Magnusson
6be85936ae Add a comment for translators about how to change order of arguments. 2008-02-17 17:01:07 +01:00
Mikael Magnusson
9e05faf3d6 () -> (void) also in .h files, and fix a place that gave arguments when it shouldn't have. 2008-02-15 16:47:10 +01:00
Mikael Magnusson
0ffd1ccc47 () -> (void) 2008-02-15 16:21:35 +01:00
Dana Jansens
db49122dec Merge branch 'backport' into work
Conflicts:

	openbox/frame.c
	openbox/menuframe.c
2008-02-15 10:03:55 -05:00
Dana Jansens
beae040a81 remove prop.c/h, as they were reintroduced in a bad merge (0dc7eca4cd) 2008-02-15 10:01:32 -05:00
Dana Jansens
4b71209ec8 make the frame iconify animation go right into the icon geometry area instead of stopping before it 2008-02-15 01:07:15 -05:00
Dana Jansens
0c8aca23eb set the window type hint on menus to be "popup menus" 2008-02-14 23:04:54 -05:00
Dana Jansens
e1b4b9eb17 Merge branch 'backport' into work 2008-02-14 15:14:55 -05:00
Dana Jansens
cec5480108 avoid a compiler warning 2008-02-14 15:11:25 -05:00
Dana Jansens
a2e3026d8a add a bunch of comments for images and image caches. and make the number of resized pictures saved in an image tunable per-icon cache. 2008-02-14 15:10:14 -05:00
Dana Jansens
4c7cc1cfa6 Introducing the icon cache.
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
2008-02-14 15:09:24 -05:00
Dana Jansens
911413d86c obprompts do not have a stacking layer, as they don't appear directly in the stacking list 2008-02-14 14:30:10 -05:00
Dana Jansens
def8fc707d obprompts do not have a stacking layer, as they don't appear directly in the stacking list 2008-02-14 14:29:40 -05:00
Dana Jansens
cd3aa44b6a draw a box inside the key-focused button in an ObPrompt. also fix rendering the buttons when they are parent-relative. 2008-02-14 14:24:37 -05:00
Dana Jansens
415c0d2721 make ObPrompts resize and redraw correctly when reconfiguring and changing themes with them open 2008-02-14 14:24:37 -05:00
Dana Jansens
c778cf15cb don't ping everything all the time. yay. ping when you close, and if it doesn't reply then show the kill prompt. also show a more correct prompt for windows connecting from non-local machines - ask to disconnect them from the X server. 2008-02-14 14:24:37 -05:00
Dana Jansens
4eecbeb611 tell what signal is going to be sent to the client when killing through the dialog 2008-02-14 14:24:37 -05:00
Dana Jansens
74a746e55f use the hover and press button colors (this was a bug) 2008-02-14 14:24:37 -05:00
Dana Jansens
7b4556b211 don't kill our own ObPrompt windows with kill actions 2008-02-14 14:24:37 -05:00
Dana Jansens
972e1fc5a3 if a prompt is already showing and you try show it again, then make it active. in the "kill this?" prompt use the window's original title without any of the openbox-appended-ness 2008-02-14 14:24:36 -05:00
Dana Jansens
d714bb5708 prompt to kill windows when they are not responding 2008-02-14 14:24:07 -05:00
Dana Jansens
c7af49b5c5 let you specify return codes for the different buttons in a prompt, and specify a callback function for the prompt for when it is closed 2008-02-14 14:24:07 -05:00
Dana Jansens
ea28a9e7ab position the buttons in the bottom right instead of centering them 2008-02-14 14:24:07 -05:00
Dana Jansens
deca45dada key input works for ObPrompt windows now 2008-02-14 14:24:07 -05:00
Dana Jansens
a5005506a8 make the prompt buttons respond to button presses. keyboard input code is there too but not working yet. 2008-02-14 14:24:07 -05:00
Dana Jansens
61b8f52430 properly place the msg texture 2008-02-14 14:24:07 -05:00
Dana Jansens
457fdc5ccb Make ObPrompt windows get managed as clients, and make them able to reconfigure as well. 2008-02-14 14:24:07 -05:00
Dana Jansens
974e88581f give prompts a border, and fix how they are laid out. and make them use the multi-line text capabilities in render for the message 2008-02-14 14:24:07 -05:00
Dana Jansens
c313b219a2 you can create dialog windows called "prompts" which have a message and some buttons! they don't do anything interesting yet. 2008-02-14 14:24:07 -05:00
Dana Jansens
f9b59a4911 make the internal window type more easily inheritable 2008-02-14 14:24:07 -05:00
Dana Jansens
91a9000d16 draw a box inside the key-focused button in an ObPrompt. also fix rendering the buttons when they are parent-relative. 2008-02-14 19:43:09 +01:00
Dana Jansens
b026bd2ecc make ObPrompts resize and redraw correctly when reconfiguring and changing themes with them open 2008-02-14 19:43:08 +01:00
Mikael Magnusson
1124d10369 Merge branch 'backport' into work
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-14 19:43:02 +01:00
Dana Jansens
27177e498b let you match per-app settings based on the window type 2008-02-14 19:40:03 +01:00
Dana Jansens
619fd7e666 don't force fake enter events while there is a grab on the pointer. this fixes focus switching during a move/resize from mouse-button-bound actions. 2008-02-14 19:40:03 +01:00
Dana Jansens
c0333e9452 _net_active_window shouldn't change desktop, is the general policy concensus. 2008-02-14 19:40:03 +01:00
Dana Jansens
8186a81fe0 split menu overlap into x and y components 2008-02-14 19:40:02 +01:00
Dana Jansens
91a1b08909 force the resize popup to be on-screen (not negative position) 2008-02-14 19:40:02 +01:00
Mikael Magnusson
83c739df91 typo in comment 2008-02-14 19:40:01 +01:00
Dana Jansens
38bef0a38b Make a pending ReplayPointer happen before moving/showing/hiding a window in an action.
Commit c907f5af4a broke kdesktop again, so we have to fix it at an even finer level.
2008-02-14 19:39:17 +01:00
Dana Jansens
0cd9986f87 add a bunch of comments for images and image caches. and make the number of resized pictures saved in an image tunable per-icon cache. 2008-02-14 11:44:51 +01:00
Dana Jansens
ea435b99a8 Introducing the icon cache.
If an icon is the same as one in the cache, then it uses that one.
icons of different sizes (from the same client) are linked together into
one, and resizes of icons are cached and linked to all the various sizes.
so you only need one icon in memory for all your terminals now. ya!
2008-02-14 11:44:28 +01:00
Dana Jansens
ec7898dda7 don't ping everything all the time. yay. ping when you close, and if it doesn't reply then show the kill prompt. also show a more correct prompt for windows connecting from non-local machines - ask to disconnect them from the X server. 2008-02-14 10:46:41 +01:00
Mikael Magnusson
c907f5af4a Wrap the focus action in actions_client_move.
When alt-tabbing to iconified audacious and the playlist or eq window pops up under
the cursor, they "stole" focus from the main window.
2008-02-13 21:37:28 -05:00
Mikael Magnusson
d5a25283dc Fix a minor issue with lastdesktop right after startup. 2008-02-13 21:36:16 -05:00
Dana Jansens
3167fc223e Merge branch 'backport' 2008-02-09 19:07:55 -05:00
Dana Jansens
f86fa2b3b4 make the text area in alttab list mode the same hight as the icon _with hilite_ 2008-02-09 19:06:45 -05:00
Dana Jansens
969c2482ce commit d9d580e038 broke kdesktop again, so we have to fix it at an even finer level. make a pending ReplayPointer happen before moving/showing/hiding a window in an action 2008-02-09 19:02:48 -05:00
Mikael Magnusson
10cabdfe85 Fix a minor issue with lastdesktop right after startup. 2008-02-09 11:43:26 +01:00
Mikael Magnusson
d9d580e038 Wrap the focus action in actions_client_move.
When alt-tabbing to iconified audacious and the playlist or eq window pops up under
the cursor, they "stole" focus from the main window.
2008-02-08 14:00:38 +01:00
Mikael Magnusson
86a95d8440 Don't bother setting screen_last_desktop here, it's inited in screen_startup anyway. 2008-02-08 10:22:57 +01:00
Mikael Magnusson
9f88642bf4 Improve menu behaviour when clicking on grandparents.
Some time ago the menus were changed to not trigger on mouseover on a grandparent or higher
so that you wouldn't lose a carefully navigated menu structure. Clicking on an item opens
it though. It used to be on ButtonRelease but now it is on ButtonPress. Additionally, a Press
now causes grandchildren to be closed when clicking on already selected parts of the hierarchy.
2008-02-07 16:06:36 +01:00
Mikael Magnusson
f6193ad9e0 Merge branch 'wip/alttab' 2008-02-07 15:28:18 +01:00
Dana Jansens
de85e4f1d9 put stuff in the right place in alttab list mode when there is only 1 window in it 2008-02-07 09:10:01 -05:00
Dana Jansens
a3babc4a99 tell what signal is going to be sent to the client when killing through the dialog 2008-02-07 02:14:45 -05:00
Dana Jansens
aeb1ebd04d use the hover and press button colors (this was a bug) 2008-02-07 02:14:45 -05:00
Dana Jansens
b3c5fab3fa don't kill our own ObPrompt windows with kill actions 2008-02-07 02:14:44 -05:00
Dana Jansens
7ecfa01df8 if a prompt is already showing and you try show it again, then make it active. in the "kill this?" prompt use the window's original title without any of the openbox-appended-ness 2008-02-07 02:14:44 -05:00
Dana Jansens
95ee6b103f prompt to kill windows when they are not responding 2008-02-07 02:14:44 -05:00
Dana Jansens
0e9cfd7c77 let you specify return codes for the different buttons in a prompt, and specify a callback function for the prompt for when it is closed 2008-02-07 02:14:44 -05:00
Dana Jansens
f4838c9a3d position the buttons in the bottom right instead of centering them 2008-02-07 02:14:44 -05:00
Dana Jansens
9a4ce94579 key input works for ObPrompt windows now 2008-02-07 02:14:44 -05:00
Dana Jansens
5130c1c28a make the prompt buttons respond to button presses. keyboard input code is there too but not working yet. 2008-02-07 02:14:44 -05:00
Dana Jansens
5f31bde96d properly place the msg texture 2008-02-07 02:14:44 -05:00
Dana Jansens
f5c2d6d379 Make ObPrompt windows get managed as clients, and make them able to reconfigure as well. 2008-02-07 02:14:44 -05:00
Dana Jansens
84f1f2be12 give prompts a border, and fix how they are laid out. and make them use the multi-line text capabilities in render for the message 2008-02-07 02:14:44 -05:00
Dana Jansens
a01ece1353 you can create dialog windows called "prompts" which have a message and some buttons! they don't do anything interesting yet. 2008-02-07 02:14:43 -05:00
Dana Jansens
a0a9b0334b make the internal window type more easily inheritable 2008-02-07 02:14:43 -05:00
Dana Jansens
5f04ca85ef Merge branch 'backport' into work
Conflicts:

	openbox/config.c
2008-02-07 02:06:42 -05:00
Dana Jansens
d81339c9cf show the arrows in the alttab list box at the right times (they were one step behind) 2008-02-06 09:35:28 -05:00
Dana Jansens
e9eac7ce50 make the listmode alttab the default 2008-02-06 09:31:03 -05:00
Mikael Magnusson
a066e61939 Don't show extra space for arrows when not needed. 2008-02-06 08:06:50 +01:00
Mikael Magnusson
930d7a33ad style 2008-02-06 08:06:49 +01:00
Dana Jansens
bc13099405 show a small arrow on the top/bottom of the alttab list box when there are more windows that are not visible in that direction 2008-02-06 01:32:12 -05:00
Dana Jansens
265bdd4660 don't crash when using <raise> and alt-tab and there are no windows to cycle between 2008-02-05 12:32:46 -05:00
Dana Jansens
92bbd733fa make sure the alttab list-mode has at least 1 row 2008-02-05 00:16:48 -05:00
Dana Jansens
0369732c35 when scrolling, all the items need to be redrawn to make parentrelative work 2008-02-05 00:11:59 -05:00
Dana Jansens
b097f84dfd scroll the alttab box in list mode 2008-02-04 23:25:54 -05:00
Mikael Magnusson
12ca673de5 Add the manageDesktops option. 2008-02-04 02:26:00 +01:00
Dana Jansens
6b04ac47e2 make the menu headers show their correct text 2008-02-03 18:45:40 -05:00
Dana Jansens
4d5dd00229 ignore fake generated enters if they are in the serial-ignore-range too 2008-02-03 18:37:45 -05:00
Dana Jansens
deb0aa720a allow you to force the position of windows with rc.xml's per-app settings with the force="yes" attribute 2008-02-03 18:37:37 -05:00
Dana Jansens
25d54d2dda fix the alttab popup mode when it shows on screen, so it won't change mid-cycling 2008-02-03 01:00:42 -05:00
Dana Jansens
892107d3ba center the text vertically in list alttab box mode 2008-02-03 00:51:55 -05:00
Dana Jansens
ad3bf0cea4 limit the alttab list to 80% of the screen height 2008-02-03 00:46:39 -05:00
Dana Jansens
04e1084d58 map the appropriate text-containing windows, and unmap the ones that are not being used based on the focus popup cycle mode 2008-02-03 00:39:19 -05:00
Dana Jansens
9b447a2d28 remove commented code 2008-02-03 00:28:03 -05:00
Dana Jansens
88d0c56be0 fix some uses of ICON_SIZE where it should be HILITE_SIZE now, from the old icon-mode focus cycle popup 2008-02-03 00:28:03 -05:00
Dana Jansens
76464a604e combine the old focus cycle popup code with mika's new list-mode popup, and make an action option for it (the old <dialog> option) 2008-02-03 00:28:02 -05:00
Mikael Magnusson
2924adb9b1 Use a_unfocused_label for all but the hilited items.
Should introduce some sort of theme element for this I suppose, but dana is not here.
2008-02-03 00:28:02 -05:00
Mikael Magnusson
3592046b2b Make the icon and hilite the proper sizes.
Had to add some obrender thingers and fiddle around a bit. Also fixed up
some confusing logic.
2008-02-03 00:28:02 -05:00
Mikael Magnusson
da5f4e08f5 Don't need to hang on to the hilite_rgba pointer any more. 2008-02-03 00:28:02 -05:00
Mikael Magnusson
23f3d6e34f Move hilite texture rendering to init time, and draw it after the icon. 2008-02-03 00:28:02 -05:00
Mikael Magnusson
d35dd5ce74 Draw the hilite texture with the icon appearance instead of the background.
This means we don't have to redraw the whole background every time.
However, the hilite is now a bit too small (or the icon is a bit too big).
2008-02-03 00:28:02 -05:00
Mikael Magnusson
23cbab8435 Beginnings of alt-tab dialog that lists all titles to the right of icons 2008-02-03 00:28:02 -05:00
Dana Jansens
a19f2f8bc9 when focusing or raising a window which is modal child for a direct parent, raise its parent and move it to the top of the stacking order too, ie. treat them like one window (this is already done elsewhere, like when moving between desktops for example) 2008-02-02 22:17:32 -05:00
Dana Jansens
751f85003f unused variable 2008-02-02 22:09:52 -05:00
Dana Jansens
58b3ec41b9 improve comment 2008-02-02 22:07:21 -05:00
Dana Jansens
d63d03a84e erroneous comment 2008-02-02 14:29:08 -05:00
Dana Jansens
f740f47e77 unused var 2008-02-02 11:38:00 -05:00
Dana Jansens
464e4c59cb missing include 2008-02-02 11:37:45 -05:00
Dana Jansens
0dc7eca4cd Merge branch 'backport' into work
Conflicts:

	openbox/client.c
	openbox/event.c
	openbox/mouse.c
	openbox/openbox.c
	openbox/prop.c
	openbox/prop.h
	openbox/screen.c
	parser/parse.c
	parser/parse.h
2008-02-02 11:37:35 -05:00
Dana Jansens
746859c101 if windows on screen are going to be moved, then do the ReplayPointer before that occurs, so it goes to the right window. if they are not, then just wait until after the actions are run (for kdesktop's sake really) 2008-02-02 11:22:17 -05:00
Dana Jansens
c64be9066e comment typo 2008-02-02 11:01:14 -05:00
Dana Jansens
bbad88aa21 add a --config-file command line option, and OB_CONFIG_FILE root hint 2008-02-02 09:45:33 -05:00
Dana Jansens
b1d4bbdb54 make fullscreen windows more xinerama and multi-screen aware
instead of calling it every time a window loses focus, it is only called when a window gains focus.  then, check fullscreen layered windows, if they should be moved to a lower layer.
when moving a window between monitors, also check its layer and that of any fullscreen windows.
let a window stay in the fullscreen layer even when it is not focused, if it is on a non-visible desktop, or if it is on a different monitor from the focused window, or if nothing else is focused
2008-02-02 09:03:13 -05:00
Dana Jansens
3b0f41dc66 fix a crash from chroot of invalid keys, and make keybindings reload better
since invalid(not translated) keybindings are allowed in the tree, the tree's structure may actually need to change when reconfiguring.  actually, it could need to anyways.  so when re-translating all the keybindings, actually rebuild the keybinding tree.  also, make the chroot building code not fail when translate fails, to match the rest of the code and avoid segfaults with chroots on invalid keys.
2008-02-02 01:25:59 -05:00
Dana Jansens
76fcb473fa don't crash when using <raise> and alt-tab and there are no windows to cycle between 2008-02-01 01:56:37 -05:00
Dana Jansens
5563e251c3 Merge branch 'backport' into work 2008-01-31 17:32:37 -05:00
Dana Jansens
6a3ac556b9 when checking that a window is onscreen, if there are screens with higher indices than where it appeared, they would trump things and force the window onto the first screen. now, only assume the window is on no screens if it actually is on no screens 2008-01-31 17:31:51 -05:00
Dana Jansens
e0c1978c51 generalize the window managing process into window_manage, which handles dock apps and the like 2008-01-31 16:50:54 -05:00
Dana Jansens
45e2039a58 unlink the log file when opening it so you get a new file 2008-01-31 12:54:52 -05:00
Mikael Magnusson
e0eb926ac2 Fix a memleak. (unref ObtPaths) 2008-01-31 12:54:51 -05:00
Dana Jansens
a21840cbb7 make ob_debug use the g_log system, and make openbox log messages to..a log file ! this will help everyone since most people do not run openbox in a terminal.. 2008-01-31 12:54:51 -05:00
Dana Jansens
20b8fcfa33 Merge branch 'backport' into work
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-31 12:51:38 -05:00
Dana Jansens
dc94a241c3 don't deiconify windows on reconfigure if they cant be iconified directly. stop managing windows in reverse order on restart it messes up the dock among other things 2008-01-31 12:26:22 -05:00
Dana Jansens
33131761db don't check for the root window in the window hash tables. waste of cpu 2008-01-31 12:26:22 -05:00
Mikael Magnusson
a0acc01f2c Fix a typo that broke transient window hints. 2008-01-31 12:25:31 -05:00
Dana Jansens
d81c4be600 don't assert when you window_find(0)/dockapp_find(0), just return 0 2008-01-31 12:25:31 -05:00
Dana Jansens
8b23b1a5b4 put openbox saved sessions in CACHE_HOME not DATA_HOME. more correct! i think. 2008-01-31 12:25:31 -05:00
Dana Jansens
52369e319f simplify window.h macros, and rename the window types to ObWindowClass for consistent name style 2008-01-31 12:25:31 -05:00
Dana Jansens
73c9a0e06b make an obt_root() macro 2008-01-31 12:25:31 -05:00
Dana Jansens
46cf95d36b make menu event handling work more like how other events are handled, less special-casey 2008-01-31 12:25:30 -05:00
Dana Jansens
29637976e6 make the window.h interface more consistent with the rest of openbox, hide the window_map behind some functions, and make obdockapps not obwindows anymore 2008-01-31 12:25:30 -05:00
Dana Jansens
d11ac82062 don't deiconify windows on reconfigure if they cant be iconified directly. stop managing windows in reverse order on restart it messes up the dock among other things 2008-01-31 11:23:43 -05:00
Dana Jansens
e7e02728a3 reordering things when mapping windows a little to work with iconified windows with iconified toolbars on restart. (e.g. ooffice) 2008-01-28 00:30:44 -05:00
Dana Jansens
3b48aa4ea2 fix a rare assert condition (window maps in iconic state but is not allowed to be iconic) 2008-01-27 23:38:28 -05:00
Mikael Magnusson
d783705141 Change <placeOn> to <monitor>. 2008-01-27 21:03:55 +01:00
Dana Jansens
dd740b5562 replace the <active> placement option with <placeOn>active/mouse/any</placeOn> 2008-01-27 11:31:23 -05:00
Dana Jansens
d409936faa get rid of copying the rrappearances for each menu frame, except for the one that is actually useful 2008-01-27 04:59:39 -05:00
Dana Jansens
a4d13100e6 use setenv/unsetenv instead of putenv, cuz they are not ugly and confusing wrt memory leaks 2008-01-27 04:25:09 -05:00
Dana Jansens
3a03a554f0 window a window stops responding to pings, don't use the xsync protocol while resizing it - its not going to be responding to it anyways 2008-01-27 03:17:50 -05:00
Dana Jansens
ee0477d167 only store icons for windows that are 64px or smaller, as we don't have need for any bigger icons at this time. unless they only provide icons bigger than that, then just store one of them (the smallest) 2008-01-27 03:14:35 -05:00
Dana Jansens
6be65a7ddd we alloc theme elements for every window frame, but really it is unneccesary 2008-01-27 02:53:26 -05:00
Dana Jansens
dd8cb753c1 add a missing #include 2008-01-27 02:41:21 -05:00
Dana Jansens
8af80aa8dd when ignoring enter events, only ignore up to the current serial (NextRequest()-1). Don't ignore enters that come after this with the next serial. 2008-01-27 02:39:39 -05:00
Dana Jansens
4307366b71 create fake enter events for button press bindings. only swallow enter events when focus.undermouse is not on (for non-mouse actions) 2008-01-27 02:39:39 -05:00
Mikael Magnusson
2c05d1fb52 Add a few missing includes and remove a stray debug printf. 2008-01-26 18:48:35 +01:00
Dana Jansens
be71b344fa only add borders and stuff to the dock's size if it is holding anything. otherwise it gets a non-zero size which messes with resistence/placement/etc 2008-01-26 01:17:56 -05:00
Dana Jansens
1c2ec09e43 fix a memleak in client_update_icon_geometry 2008-01-25 10:32:39 -05:00