mousetweaks r257 - in trunk: . src
- From: gerdk svn gnome org
- To: svn-commits-list gnome org
- Subject: mousetweaks r257 - in trunk: . src
- Date: Wed, 27 Aug 2008 21:13:03 +0000 (UTC)
Author: gerdk
Date: Wed Aug 27 21:13:03 2008
New Revision: 257
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=257&view=rev
Log:
2008-08-27 Gerd Kohlberger <gerdk svn gnome org>
* src/mt-main.c: Change cursor on all root windows.
Modified:
trunk/ChangeLog
trunk/src/mt-main.c
Modified: trunk/src/mt-main.c
==============================================================================
--- trunk/src/mt-main.c (original)
+++ trunk/src/mt-main.c Wed Aug 27 21:13:03 2008
@@ -110,12 +110,15 @@
static void
mt_main_set_cursor (MTClosure *mt, GdkCursorType type)
{
- GdkWindow *root;
+ GdkScreen *screen;
GdkCursor *cursor;
+ gint i;
cursor = gdk_cursor_new (type);
- root = gdk_screen_get_root_window (mt_main_current_screen (mt));
- gdk_window_set_cursor (root, cursor);
+ for (i = 0; i < mt->n_screens; ++i) {
+ screen = gdk_display_get_screen (gdk_display_get_default (), i);
+ gdk_window_set_cursor (gdk_screen_get_root_window (screen), cursor);
+ }
gdk_cursor_unref (cursor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]