updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / slim-plus / slim.patch
blobaa69b97a1eb0266706add70d63fb096c0b6b24db
1 --- slim.conf.orig 2008-10-29 20:52:57.000000000 +0100
2 +++ slim.conf 2008-10-29 20:56:14.000000000 +0100
3 @@ -20,6 +20,10 @@ authfile /var/run/slim.auth
4 # Activate numlock when slim starts. Valid values: on|off
5 # numlock on
7 +# Change the cursor of the root window
8 +# Valid values: everything xsetroot -cursor_name accepts
9 +cursor left_ptr
11 # Hide the mouse cursor (note: does not work with some WMs).
12 # Valid values: true|false
13 # hidecursor false
14 --- app.cpp.orig 2008-09-26 02:54:15.000000000 +0200
15 +++ app.cpp 2008-10-29 22:54:42.000000000 +0100
16 @@ -316,6 +316,12 @@ void App::Run() {
18 HideCursor();
20 + if (cfg->getOption("cursor") != "")
21 + {
22 + string cmd = "xsetroot -cursor_name '" + cfg->getOption("cursor") + "'";
23 + system(cmd.c_str());
24 + }
26 // Create panel
27 LoginPanel = new Panel(Dpy, Scr, Root, cfg, themedir);
28 bool firstloop = true; // 1st time panel is shown (for automatic username)
29 --- cfg.cpp.orig 2008-10-29 22:31:39.000000000 +0100
30 +++ cfg.cpp 2008-10-29 22:32:11.000000000 +0100
31 @@ -56,6 +56,7 @@ Cfg::Cfg()
32 options.insert(option("authfile","/var/run/slim.auth"));
33 options.insert(option("shutdown_msg","The system is halting..."));
34 options.insert(option("reboot_msg","The system is rebooting..."));
35 + options.insert(option("cursor",""));
36 options.insert(option("sessions","wmaker,blackbox,icewm"));
37 options.insert(option("sessiondir",""));
38 options.insert(option("hidecursor","false"));