1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
/* GDM - The Gnome Display Manager
* Copyright (C) 1999, 2000 Martin K. Petersen <mkp@mkp.net>
*
* This file Copyright (c) 2001 George Lebl
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef GDM_WM_H
#define GDM_WM_H
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include <X11/X.h>
#include <X11/Xlib.h>
/*
* Login window will be given focus every time a window
* is killed
*/
void gdm_wm_init (Window login_window);
/*
* By default new windows aren't given focus, you have to
* call this function with a TRUE
*/
void gdm_wm_focus_new_windows (gboolean focus);
void gdm_wm_focus_window (Window window);
/* Movement for the impatient */
void gdm_wm_move_window_now (Window window,
int x,
int y);
void gdm_wm_get_window_pos (Window window,
int *xp,
int *yp);
/* Refuse to focus the login window, poor mans modal dialogs */
void gdm_wm_no_login_focus_push (void);
void gdm_wm_no_login_focus_pop (void);
/*
* Xinerama support stuff
*/
void gdm_wm_screen_init (int cur_screen_num);
void gdm_wm_set_screen (int cur_screen_num);
/*
* Not really a WM function, center a gtk window on current screen
* by setting uposition
*/
void gdm_wm_center_window (GtkWindow *cw);
/* Center mouse pointer
*/
void gdm_wm_center_cursor (void);
/*
* Save and restore stacking order, useful for restarting
* the greeter
*/
void gdm_wm_save_wm_order (void);
void gdm_wm_restore_wm_order (void);
/* Dialogs */
gint gdm_wm_query_dialog (const gchar *primary_message,
const gchar *secondary_message,
const char *posbutton,
const char *negbutton,
gboolean has_cancel);
gint gdm_wm_warn_dialog (const gchar *primary_message,
const gchar *secondary_message,
const char *posbutton,
const char *negbutton,
gboolean has_cancel);
void gdm_wm_show_info_msg_dialog (const gchar *msg_file,
const gchar *msg_font);
void gdm_wm_message_dialog (const gchar *primary_message,
const gchar *secondary_message);
/* Access to the screen structures */
extern GdkRectangle *gdm_wm_allscreens;
extern int gdm_wm_screens;
extern GdkRectangle gdm_wm_screen;
#endif /* GDM_WM_H */
/* EOF */
|