You are not logged in.

#1 2015-10-26 03:34:07

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

[SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

Hi,
This is happening recently. I cannot remember what I changed in openbox rc.xml config file of other to make this problem appear. Whenever I start openbox, my mouse pointer turns cross-like, instead of the usual arrow-like. This cross-like pointer stays for a little. After a few minutes, it changes itself to the normal arrow-like pointer. I guess a few left-button clicks make it to change its' appearance to arrow-like pointer.
Now, my question is, what makes this change? And how to get rid of this creepy behavior, though it doesn't cause anything harmful other than taking away my mental peace.
Thanks.

Last edited by tranjeeshan (2015-10-28 10:02:30)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#2 2015-10-26 06:54:03

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

tranjeeshan wrote:

I cannot remember what I changed in openbox rc.xml config file of other to make this problem appear.

as usual, that would be the crucial question.

Whenever I start openbox, my mouse pointer turns cross-like, instead of the usual arrow-like. This cross-like pointer stays for a little. After a few minutes, it changes itself to the normal arrow-like pointer.

that is indeed weird.
are you sure it changes completely? or is it, e.g., different when you hover over an application window than when you hover over the root window (aka desktop background)?

please post the contents of the following files:
~/.xsessionrc
~/.Xresources
~/.gtkrc-2.0
~/.gtkrc-2.0.mine
~/.config/openbox/autostart

and from a terminal opened in your home folder, the output of

ls .x* .X*

Offline

#3 2015-10-26 07:45:13

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

ohnonot wrote:
tranjeeshan wrote:

I cannot remember what I changed in openbox rc.xml config file of other to make this problem appear.

as usual, that would be the crucial question.

Whenever I start openbox, my mouse pointer turns cross-like, instead of the usual arrow-like. This cross-like pointer stays for a little. After a few minutes, it changes itself to the normal arrow-like pointer.

that is indeed weird.
are you sure it changes completely? or is it, e.g., different when you hover over an application window than when you hover over the root window (aka desktop background)?

please post the contents of the following files:
~/.xsessionrc
~/.Xresources
~/.gtkrc-2.0
~/.gtkrc-2.0.mine
~/.config/openbox/autostart

and from a terminal opened in your home folder, the output of

ls .x* .X*

1. I don't have .xsessionrc file. I have .xsession-errors and .xsession-errors.old files instead.
2. I don't have .Xresources file.
3. Contents of .gtkrc-2.0 file

# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT
include "/usr/share/themes/Numix/gtk-2.0/gtkrc"

include "/home/tranjeeshan/.gtkrc-2.0.mine"

# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT

4. Seems like I don't have .gtkrc-2.0.mine either, though the previous file (.gtkrc-2.0) points to this one.
5. Contents of openbox autostart

# Launch Xcomppmgr and tint2 with openbox
if which tint2 >/dev/null 2>&1; then
  (sleep 2 && xcompmgr) &
  (sleep 2 && tint2) &
fi

## Set wallpaper using feh 
sh ~/.fehbg &

## Start volumeicon when X window starts  
volumeicon &

## Enable power management
xfce4-power-manager &

## start battery_level.py at startup
sh ~/battery_level.py &

6. As soon as I login, the mouse pointer turns into a cross-like pointer irrespective of applications.
7. The output of ls .x* .X*

.Xauthority     .Xdefaults.bak.solarized  .xsession-errors.old
.Xdefaults      .xscreensaver
.Xdefaults.bak  .xsession-errors

Last edited by tranjeeshan (2015-10-26 07:55:10)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#4 2015-10-26 08:11:40

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

Seems like it is the default cursor which is showing, so your theme cursor isn't loading at first.

Off the top of my head - have you tried starting the compositing after everything else?

Does the following command work?....

xsetroot -cursor_name left_ptr

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2015-10-26 08:26:42

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

damo wrote:

Seems like it is the default cursor which is showing, so your theme cursor isn't loading at first.

Off the top of my head - have you tried starting the compositing after everything else?

Does the following command work?....

xsetroot -cursor_name left_ptr

This command didn't work. sad


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#6 2015-10-26 08:33:10

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

Few facts:
1. Mouse pointer looks normal (arrow-like) while in LightDM.
2. As soon as openbox starts after entering userid and passwd, mouse pointer turns into cross-like pointer. You can see that in the image below:
cross_pointer.jpg
The pointer is in the middle of LOWriter.
3. Mouse pointer turns into usual arrow-like appearance after clicking the mouse the 2nd time. Problem solved with the 2nd click of the mouse. The click doesn't have to be at a time, or to a specific object. Just the first and second click, and the mouse pointer turns normal. Voila!
It's not a big deal, but I want to know what's causing this and though it's now a big deal, what's the remedy?

Last edited by tranjeeshan (2015-10-26 08:43:35)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#7 2015-10-26 12:06:59

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

I also have .Xdefaults, if this does matter. But I cannot find it when I'm root (superuser). I can find it and access it when I'm searching as a regular user. Here's the .Xdefaults contents:

!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------

Xft.dpi:                    96
Xft.antialias:              true
Xft.rgba:                   rgb
Xft.hinting:                true
Xft.hintstyle:              hintslight

!-------------------------------------------------------------------------------
! URxvt settings
! Colours lifted from Solarized (http://ethanschoonover.com/solarized)
! More info at:
! http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod
!-------------------------------------------------------------------------------

URxvt.depth:                32
URxvt.geometry:             80x24
URxvt.transparent:          false
URxvt.fading:               0
! URxvt.urgentOnBell:         true
! URxvt.visualBell:           true
URxvt.loginShell:           true
URxvt.saveLines:            50
URxvt.internalBorder:       3
URxvt.lineSpace:            0

! Fonts
URxvt.allow_bold:           false
/* URxvt.font:                 -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1 */
URxvt*font: xft:Hack:pixelsize=12
URxvt*boldFont: xft:Hack:pixelsize=12

! Fix font space
URxvt*letterSpace: -1

! Scrollbar
URxvt.scrollStyle:          rxvt
URxvt.scrollBar:            false

! Perl extensions
URxvt.perl-ext-common:      default,matcher
URxvt.matcher.button:       1
URxvt.urlLauncher:          firefox

! Cursor
URxvt.cursorBlink:          true
URxvt.cursorColor:          #657b83
URxvt.cursorUnderline:      false

! Pointer
URxvt.pointerBlank:         true

    ! special
    *.foreground:   #93a1a1
    *.background:   #002b36
    *.cursorColor:  #93a1a1

    ! black
    *.color0:       #002b36
    *.color8:       #657b83

    ! red
    *.color1:       #dc322f
    *.color9:       #dc322f

    ! green
    *.color2:       #859900
    *.color10:      #859900

    ! yellow
    *.color3:       #b58900
    *.color11:      #b58900

    ! blue
    *.color4:       #268bd2
    *.color12:      #268bd2

    ! magenta
    *.color5:       #6c71c4
    *.color13:      #6c71c4

    ! cyan
    *.color6:       #2aa198
    *.color14:      #2aa198

    ! white
    *.color7:       #93a1a1
    *.color15:      #fdf6e3

"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#8 2015-10-26 16:14:56

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,629

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

What gtk and mouse cursor themes are you using?

Does this occur with any mouse theme you use?


You must unlearn what you have learned.
    -- yoda

Offline

#9 2015-10-26 17:59:33

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

tranjeeshan wrote:

Contents of .gtkrc-2.0 file

# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT
include "/usr/share/themes/Numix/gtk-2.0/gtkrc"

include "/home/tranjeeshan/.gtkrc-2.0.mine"

# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT

i'm pretty sure the culprit is here.
please make sure you don't use gtk-theme-switch2 and it isn't running in the background or something (probably not).
then open lxappearance and choose a mousepointer, theme, icon theme and so on.
Apply.
Log out/in, see if it fixes the problem.

if not, post that file again.

Offline

#10 2015-10-27 08:37:40

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

PackRat wrote:

What gtk and mouse cursor themes are you using?

Does this occur with any mouse theme you use?

I'm using Numix as gtk theme, and the default Adwaita for mouse cursor theme. I didn't change the mouse cursor theme.


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#11 2015-10-27 08:40:23

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

ohnonot wrote:
tranjeeshan wrote:

Contents of .gtkrc-2.0 file

# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT
include "/usr/share/themes/Numix/gtk-2.0/gtkrc"

include "/home/tranjeeshan/.gtkrc-2.0.mine"

# -- THEME AUTO-WRITTEN BY gtk-theme-switch2 DO NOT EDIT

i'm pretty sure the culprit is here.
please make sure you don't use gtk-theme-switch2 and it isn't running in the background or something (probably not).
then open lxappearance and choose a mousepointer, theme, icon theme and so on.
Apply.
Log out/in, see if it fixes the problem.

if not, post that file again.

I indeed used gtk-theme-switch2 and obconf for changing themes.
I changed the theme both in openbox rc.xml and gtkrc-2.0, but they couldn't solve the problem. I even used lxappearance. I still have this cross-pointer problem. This problem doesn't persists in Xfce session though.

Last edited by tranjeeshan (2015-10-27 08:41:06)


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#12 2015-10-27 08:45:47

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

please read my previous post and act upon it, exactly, step by step.

and in case it wasn't clear enough, when i wrote "post that file again", i meant ~/.gtkrc-2.0.

Offline

#13 2015-10-27 09:28:23

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

ohnonot wrote:

please read my previous post and act upon it, exactly, step by step.

and in case it wasn't clear enough, when i wrote "post that file again", i meant ~/.gtkrc-2.0.

Oops! I missed that. Here's the .gtkrc-2.0 contents:

# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

include "/home/tranjeeshan/.gtkrc-2.0.mine"
gtk-theme-name="Numix"
gtk-icon-theme-name="Vertex-Icons"
gtk-font-name="Noto Sans 10"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"

"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#14 2015-10-27 09:29:30

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

And here's .gtkrc-2.0.mine, if that helps:

style "Noto Sans"
{
font_name = "Noto Sans 10"
}
widget_class "*" style "Noto Sans"

gtk-font-name = "Noto Sans 10"
gtk-icon-theme-name = "Vertex-Icons"
gtk-toolbar-style = GTK_TOOLBAR_ICONS

"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

#15 2015-10-27 17:14:50

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

try changing cursor-theme-name to "DMZ-White", manually.

i noticed something strange on my bunsenlabs install:
the cursor theme name "Adwaita" is the only one that shows up in lxappearance, but it appears to be exactly the same as the default/built in DMZ-Black, however, in ~/.gtkrc-2.0 it says "DMZ-White".
:confused:

Last edited by ohnonot (2015-10-27 17:18:19)

Offline

#16 2015-10-27 18:11:54

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

^ Do you think it needs raising as a bug Report?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#17 2015-10-27 20:49:29

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

^ did that solve your issue?

about "bug" - i don't know.
i don't have your problem.
i still suspect gtk-theme-chooser has something to do with it. seriously outdated app, that.

Offline

#18 2015-10-28 10:02:07

tranjeeshan
Member
Registered: 2015-10-02
Posts: 69

Re: [SOLVED]Mouse pointer looks like a cross when openbox starts in Debian

It solved the issue. Thanks smile


"Unix is simple. It just takes a genius to understand its simplicity."  - Dennis Ritchie (1941-2011), Unix Co-Creator
Unix philosophy

Offline

Board footer

Powered by FluxBB