GdkDisplay for screensaver



[ This may not be completely related to gdk/gtk  ]


I m trying to implement "shutting down" screen for my system -ubuntu.
while gnome-screensaver is active , on blank screen , I've to show my this
shutdown screen.

I used ,

display = gdk_display_get_default (); [using X11 ]
screen = gdk_display_get_default_screen (display);
gtk_window_set_screen(GTK_WINDOW(window),screen);

attached the message to window , and show using "gtk_widget_show_all()".

But This message screen is not coming onto my screensaver, but coming onto
my Xfce-desktop,
Can anyone suggest y so happening ? How to get the display currently being
used by gnome-screensaver and show my widget/image onto it ? ?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]