all repos — openbox @ 973507ff28b5d71433b3d0583e757fbc82b254c5

openbox fork - make it a bit more like ryudo

add the NONE cursor.
remove startup notification code from openbox.c and openbox.h
call the new sn_startup/shutdown for startupnotification.c
Dana Jansens danakj@orodu.net
commit

973507ff28b5d71433b3d0583e757fbc82b254c5

parent

15450dc799a581bcefb9a6ad51b575cf46b647c5

2 files changed, 4 insertions(+), 21 deletions(-)

jump to
M openbox/openbox.copenbox/openbox.c

@@ -7,8 +7,8 @@ #include "menu.h"

#include "client.h" #include "xerror.h" #include "prop.h" -#include "startup.h" #include "screen.h" +#include "startupnotify.h" #include "focus.h" #include "moveresize.h" #include "frame.h"

@@ -127,10 +127,6 @@ if (sm_save_file)

session_load(sm_save_file); session_startup(argc, argv); -#ifdef USE_LIBSN - ob_sn_display = sn_display_new(ob_display, NULL, NULL); -#endif - ob_screen = DefaultScreen(ob_display); ob_rr_inst = RrInstanceNew(ob_display, ob_screen);

@@ -155,6 +151,7 @@ display we're using, so they open in the right place. */

putenv(g_strdup_printf("DISPLAY=%s", DisplayString(ob_display))); /* create available cursors */ + cursors[OB_CURSOR_NONE] = None; cursors[OB_CURSOR_POINTER] = XCreateFontCursor(ob_display, XC_left_ptr); cursors[OB_CURSOR_BUSY] =

@@ -195,9 +192,6 @@

prop_startup(); /* get atoms values for the display */ extensions_query_all(); /* find which extensions are present */ - /* save stuff that we can use to restore state */ - startup_save(); - if (screen_annex()) { /* it will be ours! */ do { event_startup(reconfigure);

@@ -206,6 +200,7 @@ /* focus_backup is used for stacking, so this needs to come before

anything that calls stacking_add */ focus_startup(reconfigure); window_startup(reconfigure); + sn_startup(reconfigure); { ObParseInst *i;

@@ -272,6 +267,7 @@ group_shutdown(reconfigure);

screen_shutdown(reconfigure); focus_shutdown(reconfigure); moveresize_shutdown(reconfigure); + sn_shutdown(reconfigure); window_shutdown(reconfigure); grab_shutdown(reconfigure); event_shutdown(reconfigure);

@@ -284,10 +280,6 @@ RrInstanceFree(ob_rr_inst);

session_shutdown(); g_free(ob_sm_id); - -#ifdef USE_LIBSN - sn_display_unref(ob_sn_display); -#endif XCloseDisplay(ob_display);
M openbox/openbox.hopenbox/openbox.h

@@ -6,11 +6,6 @@

#include "render/render.h" #include "render/theme.h" -#ifdef USE_LIBSN -# define SN_API_NOT_YET_FROZEN -# include <libsn/sn.h> -#endif - #include <glib.h> #include <X11/Xlib.h>

@@ -23,10 +18,6 @@ extern struct _ObMainLoop *ob_main_loop;

/*! The X display */ extern Display *ob_display; - -#ifdef USE_LIBSN -SnDisplay *ob_sn_display; -#endif /*! The number of the screen on which we're running */ extern gint ob_screen;