all repos — openbox @ e7ae71db7008c2418090608e9860da024f1c1464

openbox fork - make it a bit more like ryudo

openbox/startup.c (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "prop.h"
#include "screen.h"
#include "client.h"
#include "focus.h"
#include "config.h"
#include "openbox.h"

guint32 *startup_stack_order = NULL;
guint    startup_stack_size = 0;
guint32  startup_active = None;
guint32  startup_desktop = 0;

void startup_save()
{
    /* save the stacking order on startup! */
    PROP_GETA32(RootWindow(ob_display, ob_screen),
                net_client_list_stacking, window,
                (guint32**)&startup_stack_order, &startup_stack_size);
    PROP_GET32(RootWindow(ob_display, ob_screen),
               net_active_window, window, &startup_active);
    PROP_GET32(RootWindow(ob_display, ob_screen),
               net_current_desktop, cardinal, &startup_desktop);
}