Active Topics

 


Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#1
Hi,

Messing with Synergy and I'm curious -- is it possible to enable a mouse cursor to be shown all the time? I'm currently using this quick hack I knocked up
PHP Code:
#include <gdk/gdkx.h>
#include <gtk/gtk.h>

int main (void)
{
    
GdkPixbuf *pixbuf NULL;
    
GdkCursor *cursor NULL

    
gtk_init (NULLNULL);

    
pixbuf gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "browser_cursor"320NULL);
    
g_assert (pixbuf);
    
gint x = (gdk_pixbuf_get_width (pixbuf) / 2) - 7/* Maths is shitty */
    
gint y = (gdk_pixbuf_get_height (pixbuf) / 2) - 7;

    
cursor gdk_cursor_new_from_pixbuf (gdk_display_get_default (), pixbufxy); /* I should be freeing you (and others)... */
    
g_assert (cursor);
    
gdk_window_set_cursor (gdk_window_foreign_new (GDK_ROOT_WINDOW ()), cursor);
    
g_idle_add ((GSourceFuncgtk_main_quitNULL);
    
gtk_main ();
    
    return 
0;

but the cursor flickers a lot. :\ Would anyone know if it's possible to replace the cursors, like it was on the N800?
 
antezz's Avatar
Posts: 172 | Thanked: 160 times | Joined on Jan 2010 @ Sweden
#2
I would like to know also there's cursors in /usr/share/icons/default/cursors and they are symlinked to the file "transp" which is an transparent cursor i think? Replacing it with a non-transparent would fix it?
 

The Following 3 Users Say Thank You to antezz For This Useful Post:
Posts: 18 | Thanked: 5 times | Joined on Apr 2010
#3
Nokia-N900-51-1:/usr/share/icons/default/cursors# ls -l
lrwxrwxrwx 1 root root 6 Dec 17 13:34 00008160000006810000408080010102 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 028006030e0e7ebffc7f7070c0600140 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 03b6e0fcb3499374a867c041f52298f0 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 08e8e1c95fe2fc01f976f1e063a24ccd -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 14fef782d02440884392942c11205230 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 2870a09082c103050810ffdffffe0204 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 3ecb610c1bf2410f44200f48c40d3599 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 4498f0e0c1937ffe01fd06f973665830 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 9d800788f1b08800ae810202380a0822 -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 X_cursor -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 arrow -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 base_arrow_down -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 base_arrow_up -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 based_arrow_down -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 based_arrow_up -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 bd_double_arrow -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 boat -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 bottom_left_corner -> transp
lrwxrwxrwx 1 root root 6 Dec 17 13:34 bottom_right_corner -> transp
and so on...
 

The Following User Says Thank You to bitwit For This Useful Post:
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#4
I replaced my transp with a red dot I made. Works.
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.
 

The Following 2 Users Say Thank You to mece For This Useful Post:
Posts: 40 | Thanked: 3 times | Joined on Nov 2009
#5
can you explain how you did this? Got synergy working but it's useless without a cursor.
 

The Following User Says Thank You to spadge For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
Replacing them with the Bluecurve-inverse ones certainly did not work for me. All I got was some selection cursors in Evince, a mouse cursor in Tear and a mouse cursor in Qt apps. Not in anything else at all.

Back to my hack which actually works.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Reply

Tags
cursor, enable cursor, enable pointer, fremantle, maemo, maemo 5, mouse, mouse cursor, mouse pointer, pointer, visible cursor, visible mouse, visible pointer


 
Forum Jump


All times are GMT. The time now is 14:57.