Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#549375: mouse pointer not visible after changing resolution or refresh rate

0 views
Skip to first unread message

Jö Fahlke

unread,
Nov 25, 2009, 5:10:02 AM11/25/09
to
Am Sat, 24. Oct 2009, 10:17:50 +0200 schrieb Jö Fahlke:
> For me (and a co-worker) this happens when switching from internal to external
> monitor. Our workaround is to put the laptop to sleep and wake it up again.

Found a simpler workaround: lock the screen using xscreensaver. Of course I
have to type in my password to unlock it but it's better than putting the
laptop into standby.

Thanks,
Jö.

--
<ex-bart> seen die_MACHT
<Volk> I don't know who die_MACHT is.

signature.asc

Jö Fahlke

unread,
Jan 5, 2010, 9:20:02 AM1/5/10
to
Am Wed, 25. Nov 2009, 10:30:48 +0100 schrieb Jö Fahlke:
> Found a simpler workaround: lock the screen using xscreensaver. Of course I
> have to type in my password to unlock it but it's better than putting the
> laptop into standby.

Attached are the relevant parts lifted from xscreensaver. The program creates
a window covering the whole screen and sets the windows cursor to a cursor
created with XCreatePixmapCursor() from a 1x1 transparent pixmap. The window
is then briefly mapped so the mouse pointer enters it. After the window is
destroyed, the usual cursor is is visible again.

Creating the cursor with XCreateFontCursor() instead is not enough and I
haven't tried XCreateGlyphCursor().

To compile the program use

gcc -lX11 -o fix-x-cursor fix-x-cursor.c

Bye,
Jö.


--
F: Was ist der Sinn des Menschen?
A: Die Menschheit voranzubringen.
F: Aber was ist der Sinn der Menschheit?

fix-x-cursor.c
signature.asc
0 new messages