updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / slim-cursor / slim.patch
blob9b6466d1068ee501c031188930881d4487990117
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("sessions","wmaker,blackbox,icewm"));
33 options.insert(option("sessiondir",""));
34 options.insert(option("hidecursor","false"));
35 + options.insert(option("cursor",""));
37 // Theme stuff
38 options.insert(option("input_panel_x","50%"));