Commit graph

60 commits

Author SHA1 Message Date
Mikael Magnusson
77baf26a7f remove trailing whitespace 2007-07-17 02:48:16 +02:00
Dana Jansens
6f6ab8c442 save and restore the desktop number/layout/names in the session.
also fix a segfault in some debug prints, printing ints as strings!
2007-05-23 03:07:50 +00:00
Dana Jansens
53309da211 put back the check for the window type when restoring the session. if you only have 1 firefox window in the saved session, the check for duplicates won't help 2007-05-22 04:52:44 +00:00
Dana Jansens
8679fbba8f when restoring the session, dont restore windows which appear more than once in the session with the same identifiers, because we can;t tell them apart 2007-05-22 03:03:07 +00:00
Dana Jansens
44be67844a don't reload the session on restart 2007-05-22 00:05:28 +00:00
Dana Jansens
f9a79e6062 a little check that catches firefox and other buggy apps, which set the same wmcommand across sessions on different window types. type is a pretty obvious check its hard for it to be a false alarm 2007-05-17 03:31:20 +00:00
Dana Jansens
53e75c5be4 we don't need to save the config type in the session because if they dont run their DE with the openbox-*-session command, openbox won't be loaded anyhow. and if they do, they the var will be set and doesn't need to come from the session. 2007-05-14 00:41:30 +00:00
Dana Jansens
5c96972bff save the config type in the session command line arguments 2007-05-13 22:57:42 +00:00
Dana Jansens
f1ad68d05b add some debug prints
make it C compliant.
some random cleanups
2007-05-10 03:11:46 +00:00
Dana Jansens
a97b2f75fb mem leak 2007-05-09 21:17:31 +00:00
Dana Jansens
4b912ed24d possible buffer overflow? 2007-05-09 20:27:19 +00:00
Dana Jansens
de98881368 memory leak 2007-05-06 23:29:29 +00:00
Dana Jansens
3c4d73c484 save session state for old clients that dont use XSMP. more session improvements. with ksmserver we can save a few things before the clients go messing with stuff during the interactive phase. 2007-05-06 11:14:20 +00:00
Dana Jansens
277db2822d a bunch of thigns got squashed into this commit.. sorry..
1. soem bug fixes for window stacking
2. clarify some functions behavior with their names
3. add (untested) support for legacy fullscreen apps. i have no idea what they do on a multihead xinerama setup though and if this would help there or need some changes.
2007-05-06 08:32:03 +00:00
Dana Jansens
1bf9de3809 refactor all the session stuff. yay, it works properly now.
make sessions save the desktop being displayed. can we get rid of config_firstdesk now?
refactor startup a bit. focus the window that was focused when we were restarted.
have clients properly restore their session state.
add undecorated to the saved session state for clients.
2007-05-06 05:19:19 +00:00
Dana Jansens
5a68cdadf3 extra comma 2007-04-23 20:36:13 +00:00
Dana Jansens
2442cdfd85 1) translate all of openbox's output
2) update copyrights.
3) make release. ok that part not quite yet.
2007-04-23 17:56:35 +00:00
Mikael Magnusson
b7964c3bae fix compiling without session manager support 2007-03-04 12:00:21 +00:00
Dana Jansens
86b809df8a oops... I'm combining two different things in this commit... so I'll try be clear
1. when another wm requests to replace openbox, openbox exits. but the SM will just restart openbox unless we tell it not to. so now ob_exit_replace() will change the session manager's view of openbox to not restart it. that way the new WM will be able to run.

2. allow windows to move themselves off of the screen 90% of the way, if they really want to. but only 90% to the left, right, and bottom of the screen. it won't let the app move off the top of the screen on its own at all now, since hiding the titlebar on you without you being a part of the process is pretty darn evil!

this is really to address bug # 2982 - for the tilda application. but i guess if windows really want to move off the screen, who's to say no? also, every other window manager will let them - except metacity won't let them on the left/top side of the screen.
2007-03-04 09:01:52 +00:00
Dana Jansens
73671503fa don't change the restart type with the session manager when openbox exits. it's not like something else will magically run instead. if we exit, we should get started again, that's why --replace exists. 2007-03-03 06:04:00 +00:00
Dana Jansens
9d1949f0b1 if sm is disabled, there is nothing to shutdown, so don't go trying to free things and stuff. that can only be a bug 2007-03-03 03:47:50 +00:00
Dana Jansens
48a7c32512 make a copy of the argc and argv instead of modifying the real ones
this means that when openbox is restared it doesn't lose it's SM related command line args, they get passed to the new openbox same as they were passed to the one exiting.
2007-03-03 03:42:28 +00:00
Dana Jansens
81743b0529 reverse that last commit.. that was by accident.. 2007-03-03 03:29:24 +00:00
Dana Jansens
f189b02f85 add --reconfigure option to openbox.
this option will open the display, find the current openbox's PID from the root window, and send a SIGUSR2 to it, telling it to reconfigure. then it exits.

no longer printing help if you pass an invalid argument to openbox

since that is the case, session_startup doesnt need to be modifying the args anymore
2007-03-03 03:27:35 +00:00
Dana Jansens
b338e27b32 use g_snprintf instead of sprintf 2003-11-11 11:59:50 +00:00
Dana Jansens
064901801e dont go changing the session file all the time, and so then dont need to unlink so we dont end up stalling when the same session is asked for more than once. 2003-11-11 11:54:29 +00:00
Dana Jansens
671a30187f g_strerror 2003-10-25 19:40:54 +00:00
Dana Jansens
eaa3b3aaa7 capitalization consistency 2003-10-25 19:16:38 +00:00
Dana Jansens
5cadc1bff5 much improved functions for maknig directories, props to Logan 2003-10-25 19:13:09 +00:00
Dana Jansens
ae04366751 missing ; 2003-10-15 05:06:16 +00:00
Dana Jansens
9b0f5fcde7 delete old save file when changing the session save file 2003-10-15 04:02:38 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +00:00
Dana Jansens
da9bda5e9b remove the --sm-disable from argv 2003-10-10 16:20:48 +00:00
Dana Jansens
caca123b90 dont use the _OPENBOX_PREMAX window property anymore, save max and fullscreen pre-areas in the client struct 2003-09-25 22:47:48 +00:00
Dana Jansens
6d1570210b missing a \n 2003-09-22 17:50:05 +00:00
Dana Jansens
2bd406a0a5 make a warning into a debug message 2003-09-18 08:02: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
f85a855417 make ob_exit() take an error code. don't exit with 0 for signals other than TERM and INT. 2003-09-17 02:50:20 +00:00
Dana Jansens
c1b2fc5324 make openbox base-dir spec compliant, and change the theme dir structure, so that themes go in $XDG_DATA_DIRS/themes/ with gtk/metacity/whateverelse themes 2003-09-15 19:20:05 +00:00
Dana Jansens
4ba5ce3ced use the sm_client_id in the client struct 2003-09-15 06:50:41 +00:00
Dana Jansens
84a60ebbfb dont use obsolete xmlChildrenNode 2003-09-07 23:34:01 +00:00
Dana Jansens
755ec08aa3 move session code out of openbox.c all into session.c
remove --sm-save-file and --sm-client-id from argv so that they dont get reused when doing a restart.
2003-09-04 01:52:15 +00:00
Dana Jansens
06fb4c7382 remove debug prints 2003-09-02 17:43:49 +00:00
Dana Jansens
ffba11aeb0 load menu plugins automatically from whats in the menu file
menu fixups
move enabled into the 'normal menu item' specific data stuff
2003-08-28 06:32:27 +00:00
Dana Jansens
8251308845 blef 2003-08-25 15:29:40 +00:00
Dana Jansens
507e7ac875 type change 2003-08-25 15:29:18 +00:00
Dana Jansens
1a94524b08 make --disable-session-management work i think 2003-08-25 15:28:32 +00:00
Dana Jansens
486c189d0b save the stacking order of the windows, and sort the saved session data based on stacking when it is loaded. make the list public. 2003-08-25 07:46:59 +00:00
Dana Jansens
bfd20c7a84 compile fixes 2003-08-01 02:57:11 +00:00