diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-18 02:10:26 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-18 02:10:26 +0000 |
| commit | 2b2beddc7447197d12fcbcae96772e1f38eef138 (patch) | |
| tree | 4825c908bd258e4bd62f73fb47209e6ccd9c6ec3 /openbox/openbox.c | |
| parent | c912b634abe65ea4a07c69f8c051b0c766614128 (diff) | |
add (optional) support for showing a busy cursor via startup notification
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index 93e91a59..3b2a9991 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -118,7 +118,11 @@ int main(int argc, char **argv) g_critical("Failed to set display as close-on-exec."); exit(1); } - + +#ifdef USE_LIBSN + ob_sn_display = sn_display_new(ob_display, NULL, NULL); +#endif + ob_screen = DefaultScreen(ob_display); ob_root = RootWindow(ob_display, ob_screen); @@ -140,6 +144,7 @@ int main(int argc, char **argv) putenv(g_strdup_printf("DISPLAY=%s", DisplayString(ob_display))); ob_cursors.ptr = XCreateFontCursor(ob_display, XC_left_ptr); + ob_cursors.busy = XCreateFontCursor(ob_display, XC_watch); ob_cursors.move = XCreateFontCursor(ob_display, XC_fleur); ob_cursors.tl = XCreateFontCursor(ob_display, XC_top_left_corner); ob_cursors.tr = XCreateFontCursor(ob_display, XC_top_right_corner); |
