Commit graph

2871 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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