incorrect mouse cursor in some apps

Hi, I chatted briefly with nomeata yesterday and the consesus was that my problem is not an app issue but instead something in my system or build of xmonad. the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor. This shows up in a variety of apps: gnucash, xpdf, xvidtune*, Xdialog**. There are probably others, but I haven't gone through the whole list. Other apps work just fine: urxvt and other terminals show the usual text-insertion cursor. firefox/iceweasel show an arrow or insertion cursor as expected and so forth. I'm not really sure where to go from here in terms of trouble shooting this, but I wonder if I'm missing some -dev package that supports this but doesn't cause a configure failure? I don't know I'm running xmonad 0.4 built from source (not nomeata's .debs) on up-to-date debian sid. I've installed and tried a couple different mouse themes just to see if that was the problem and it didn't help. * xvidtune is interesting. It shows the "X" cursor everywhere but in the slide bars. There it shows the <=> cursor. ** Xdialog is interesting too. If I run just Xdialog with no arguments, it puts up a dialog with usage information. That dialog shows the insertion cursor when over the text portion of the window but shows the "X" when over the buttons or border... Any suggestions about where to look are appreciated. A

Andrew Sackville-West
the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor.
It's the same for me, but on Debian Etch. I've never considered this a bug, but maybe it is?! -- Feri.

On Fri, 26 Oct 2007 19:59:55 +0200
Wagner Ferenc
Andrew Sackville-West
writes: the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor.
It's the same for me, but on Debian Etch. I've never considered this a bug, but maybe it is?!
It's not a bug, you just have to set your cursor at start up :) I've got an xmonad-session script that starts up xmonad with a load of other stuff. What I'm doing to fix the cursor is: /usr/bin/xsetroot -cursor_name left_ptr Which looks worlds better than the bit X :) --trevor

Trevor Elliott
On Fri, 26 Oct 2007 19:59:55 +0200 Wagner Ferenc
wrote: Andrew Sackville-West
writes: the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor.
It's the same for me, but on Debian Etch. I've never considered this a bug, but maybe it is?!
It's not a bug, you just have to set your cursor at start up :)
That's exactly what I expected.
/usr/bin/xsetroot -cursor_name left_ptr
Which looks worlds better than the bit X :)
Thanks for the tip, I feel more at home now! -- Feri.

On Fri, Oct 26, 2007 at 11:33:59AM -0700, Trevor Elliott wrote:
On Fri, 26 Oct 2007 19:59:55 +0200 Wagner Ferenc
wrote: Andrew Sackville-West
writes: the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor.
It's the same for me, but on Debian Etch. I've never considered this a bug, but maybe it is?!
It's not a bug, you just have to set your cursor at start up :)
I've got an xmonad-session script that starts up xmonad with a load of other stuff. What I'm doing to fix the cursor is:
/usr/bin/xsetroot -cursor_name left_ptr
aha, perfect. thanks A

andrew:
Hi,
I chatted briefly with nomeata yesterday and the consesus was that my problem is not an app issue but instead something in my system or build of xmonad.
the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor. This shows up in a variety of apps: gnucash, xpdf, xvidtune*, Xdialog**. There are probably others, but I haven't gone through the whole list. Other apps work just fine: urxvt and other terminals show the usual text-insertion cursor. firefox/iceweasel show an arrow or insertion cursor as expected and so forth.
Yep, not a bug. You just set your own cursor, as follows: # .xinitrc xrdb $HOME/.Xresources xsetroot -cursor_name left_ptr xsetroot -solid '#80a0af' I'll add it to the FAQ. -- Don

On Fri, Oct 26, 2007 at 12:00:33PM -0700, Don Stewart wrote:
andrew:
the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor. This shows up in a
Yep, not a bug. You just set your own cursor, as follows:
# .xinitrc
xrdb $HOME/.Xresources xsetroot -cursor_name left_ptr xsetroot -solid '#80a0af'
thanks for all the great responses and explanations. Very happy now using xsetroot and love xmonad. thanks A

On Oct 26, 2007, at 12:50 , Andrew Sackville-West wrote:
the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor. This shows up in a variety of apps: gnucash, xpdf, xvidtune*, Xdialog**. There are probably others, but I haven't gone through the whole list. Other apps work just fine: urxvt and other terminals show the usual text-insertion cursor. firefox/iceweasel show an arrow or insertion cursor as expected and so forth.
X11 windows (the low-level window object, as opposed to what most people (and window managers) consider a window; many (but not all) of the visible widgets in a GUI application are independent windows) can have a cursor associated with them, or otherwise inherit the one set on the parent window. Thus, most applications will not set a cursor at all, or only do so on special widgets (e.g. Xaw scrollbars get the bidirectional arrow cursor). Problem is, the default X11 root window cursor is a big ugly X, not a pointer like most people (and applications!) expect. Integrated desktop systems install a default pointer cursor, but simple window managers (not just xmonad but also things like twm) don't. As noted, this is easy to fix with xsetroot, but it remains an unfortunate default. (Hm. Someone should petition x.org to change the default root cursor....) -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

allbery:
On Oct 26, 2007, at 12:50 , Andrew Sackville-West wrote:
the problem: some apps, a blank workspace and the border around windows all show the default "X" mouse cursor. This shows up in a variety of apps: gnucash, xpdf, xvidtune*, Xdialog**. There are probably others, but I haven't gone through the whole list. Other apps work just fine: urxvt and other terminals show the usual text-insertion cursor. firefox/iceweasel show an arrow or insertion cursor as expected and so forth.
X11 windows (the low-level window object, as opposed to what most people (and window managers) consider a window; many (but not all) of the visible widgets in a GUI application are independent windows) can have a cursor associated with them, or otherwise inherit the one set on the parent window. Thus, most applications will not set a cursor at all, or only do so on special widgets (e.g. Xaw scrollbars get the bidirectional arrow cursor).
Problem is, the default X11 root window cursor is a big ugly X, not a pointer like most people (and applications!) expect. Integrated desktop systems install a default pointer cursor, but simple window managers (not just xmonad but also things like twm) don't. As noted, this is easy to fix with xsetroot, but it remains an unfortunate default. (Hm. Someone should petition x.org to change the default root cursor....)
I've updated the faq to explain this feature. -- Don
participants (5)
-
Andrew Sackville-West
-
Brandon S. Allbery KF8NH
-
Don Stewart
-
Trevor Elliott
-
Wagner Ferenc