Commit graph

41 commits

Author SHA1 Message Date
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
Dana Jansens
860020c1e1 kill some output 2003-07-31 16:43:16 +00:00
Dana Jansens
e75ad73c0f declare functions that are needed when built without session support 2003-07-31 08:08:56 +00:00
Dana Jansens
d9cc4f6522 use the new sm_client_id function so all windows who should save state do. session save/load seems to be working with gnome-session rather well. 2003-07-31 08:05:38 +00:00
Dana Jansens
9c1438f17b restore saved session data for applications 2003-07-30 20:01:35 +00:00
Dana Jansens
7da335f944 set teh clone comamnd 2003-07-28 05:32:39 +00:00
Dana Jansens
7b00edb343 use char not a long, since we're telling the SM that its 1 byte lone 2003-07-28 05:29:58 +00:00
Dana Jansens
4d7a7d9d4c save the commands on startup 2003-07-28 05:20:50 +00:00
Dana Jansens
f531b18a44 use the path properly for the session file 2003-07-28 04:53:51 +00:00
Dana Jansens
ecab6fe3c8 use teh save file not the session id 2003-07-28 04:45:45 +00:00
Dana Jansens
04a44af3c4 save and load the session save file, though its data is not used yet! 2003-07-24 18:19:26 +00:00