Go to the source code of this file.
Defines | |
| #define | _GNU_SOURCE |
| #define | _SVID_SOURCE |
Functions | |
| static void | meta_window_present_delete_dialog (MetaWindow *window, guint32 timestamp) |
| static void | delete_ping_reply_func (MetaDisplay *display, Window xwindow, guint32 timestamp, void *user_data) |
| static Window | window_from_string (const char *str) |
| static int | pid_from_string (const char *str) |
| static gboolean | parse_dialog_output (const char *str, int *pid_out, Window *win_out) |
| static void | search_and_destroy_window (int pid, Window xwindow) |
| static void | release_window_with_fd (int fd) |
| static gboolean | io_from_ping_dialog (GIOChannel *channel, GIOCondition condition, gpointer data) |
| static void | delete_ping_timeout_func (MetaDisplay *display, Window xwindow, guint32 timestamp, void *user_data) |
| void | meta_window_delete (MetaWindow *window, guint32 timestamp) |
| void | meta_window_kill (MetaWindow *window) |
| void | meta_window_free_delete_dialog (MetaWindow *window) |
| static void delete_ping_reply_func | ( | MetaDisplay * | display, | |
| Window | xwindow, | |||
| guint32 | timestamp, | |||
| void * | user_data | |||
| ) | [static] |
Definition at line 46 of file delete.c.
References META_DEBUG_PING.
Referenced by meta_window_delete().
| static void delete_ping_timeout_func | ( | MetaDisplay * | display, | |
| Window | xwindow, | |||
| guint32 | timestamp, | |||
| void * | user_data | |||
| ) | [static] |
Definition at line 282 of file delete.c.
References _, _MetaWindow::desc, _MetaWindow::dialog_pid, _MetaWindow::dialog_pipe, io_from_ping_dialog(), META_DEBUG_PING, meta_warning(), meta_window_present_delete_dialog(), NULL, _MetaScreen::number, _MetaWindow::screen, _MetaWindow::title, and _MetaWindow::xwindow.
Referenced by meta_window_delete().
| static gboolean io_from_ping_dialog | ( | GIOChannel * | channel, | |
| GIOCondition | condition, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 229 of file delete.c.
References _, FALSE, META_DEBUG_PING, meta_warning(), NULL, parse_dialog_output(), release_window_with_fd(), and search_and_destroy_window().
Referenced by delete_ping_timeout_func().
| void meta_window_delete | ( | MetaWindow * | window, | |
| guint32 | timestamp | |||
| ) |
Definition at line 358 of file delete.c.
References _MetaScreen::active_workspace, delete_ping_reply_func(), delete_ping_timeout_func(), _MetaWindow::delete_window, _MetaWindow::desc, _MetaWindow::display, FALSE, _MetaWindow::has_focus, META_DEBUG_FOCUS, META_DEBUG_WINDOW_OPS, meta_display_ping_window(), meta_error_trap_pop(), meta_error_trap_push(), meta_window_send_icccm_message(), meta_workspace_focus_default_window(), _MetaWindow::screen, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.
Referenced by handle_close_window(), menu_callback(), meta_core_delete(), and meta_window_client_message().
| void meta_window_free_delete_dialog | ( | MetaWindow * | window | ) |
Definition at line 459 of file delete.c.
References _MetaWindow::dialog_pid, and _MetaWindow::dialog_pipe.
Referenced by meta_window_free(), and release_window_with_fd().
| void meta_window_kill | ( | MetaWindow * | window | ) |
Definition at line 418 of file delete.c.
References _, _MetaWindow::desc, _MetaWindow::display, FALSE, META_DEBUG_WINDOW_OPS, meta_error_trap_pop(), meta_error_trap_push(), meta_warning(), _MetaWindow::net_wm_pid, NULL, _MetaWindow::wm_client_machine, _MetaDisplay::xdisplay, and _MetaWindow::xwindow.
Referenced by search_and_destroy_window().
| static void meta_window_present_delete_dialog | ( | MetaWindow * | window, | |
| guint32 | timestamp | |||
| ) | [static] |
Definition at line 471 of file delete.c.
References _MetaWindow::desc, _MetaWindow::dialog_pid, _MetaWindow::display, META_DEBUG_PING, meta_display_list_windows(), meta_window_activate(), NULL, _MetaWindow::res_class, windows, _MetaWindow::xtransient_for, and _MetaWindow::xwindow.
Referenced by delete_ping_timeout_func().
| static gboolean parse_dialog_output | ( | const char * | str, | |
| int * | pid_out, | |||
| Window * | win_out | |||
| ) | [static] |
Definition at line 113 of file delete.c.
References _, FALSE, meta_warning(), pid_from_string(), TRUE, and window_from_string().
Referenced by io_from_ping_dialog().
| static int pid_from_string | ( | const char * | str | ) | [static] |
Definition at line 86 of file delete.c.
References _, meta_warning(), and NULL.
Referenced by parse_dialog_output().
| static void release_window_with_fd | ( | int | fd | ) | [static] |
Definition at line 192 of file delete.c.
References _MetaWindow::desc, _MetaWindow::dialog_pid, _MetaWindow::dialog_pipe, FALSE, META_DEBUG_PING, meta_display_list_windows(), meta_get_display(), meta_window_free_delete_dialog(), NULL, TRUE, and windows.
Referenced by io_from_ping_dialog().
| static void search_and_destroy_window | ( | int | pid, | |
| Window | xwindow | |||
| ) | [static] |
Definition at line 142 of file delete.c.
References _MetaWindow::dialog_pid, FALSE, META_DEBUG_PING, meta_display_list_windows(), meta_get_display(), meta_window_kill(), NULL, TRUE, windows, and _MetaWindow::xwindow.
Referenced by io_from_ping_dialog().
| static Window window_from_string | ( | const char * | str | ) | [static] |
Definition at line 59 of file delete.c.
References _, meta_warning(), and NULL.
Referenced by on_realize(), and parse_dialog_output().
1.5.5