2006-10-01 18:30:10 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 06:29:20 -04:00
|
|
|
/* Mutter window deletion */
|
2002-04-13 00:58:45 -04:00
|
|
|
|
|
|
|
/*
|
2002-06-09 23:00:21 -04:00
|
|
|
* Copyright (C) 2001, 2002 Havoc Pennington
|
2005-10-08 15:38:54 -04:00
|
|
|
* Copyright (C) 2004 Elijah Newren
|
2002-04-13 00:58:45 -04:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2008-02-26 23:39:10 -05:00
|
|
|
#define _GNU_SOURCE
|
|
|
|
#define _SVID_SOURCE /* for gethostname() */
|
|
|
|
|
2002-04-13 00:58:45 -04:00
|
|
|
#include <config.h>
|
|
|
|
#include "util.h"
|
2008-05-18 20:00:09 -04:00
|
|
|
#include "window-private.h"
|
2002-04-13 00:58:45 -04:00
|
|
|
#include "errors.h"
|
2003-08-15 18:09:55 -04:00
|
|
|
#include "workspace.h"
|
2002-04-13 00:58:45 -04:00
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
2003-09-29 12:55:26 -04:00
|
|
|
#include <stdio.h>
|
2002-04-13 00:58:45 -04:00
|
|
|
|
Partial audit to fix timestamp usage. One step towards fixing #355180; see
2006-09-18 Elijah Newren <newren gmail com>
Partial audit to fix timestamp usage. One step towards fixing
#355180; see important comments in that bug.
* src/core.[ch] (meta_core_unshade, meta_core_shade):
* src/delete.c (meta_window_present_delete_dialog,
delete_ping_timeout_func):
* src/display.[ch] (meta_display_open, meta_display_close,
event_callback, meta_display_begin_grab_op,
process_selection_clear, meta_display_unmanage_screen,
meta_display_unmanage_windows_for_screen):
* src/frames.c (meta_frames_button_press_event):
* src/keybindings.c (handle_toggle_shade):
* src/main.c (main):
* src/screen.[ch] (update_num_workspaces, meta_screen_new,
meta_screen_free, prefs_changed_callback):
* src/window.[ch] (meta_window_free, finish_minimize,
implement_showing, meta_window_show, meta_window_maximize,
meta_window_make_fullscreen_internal,
meta_window_unmake_fullscreen, meta_window_shade,
meta_window_unshade, window_activate, send_sync_request,
meta_window_client_message, menu_callback,
meta_window_update_keyboard_resize):
Remove usage of CurrentTime, meta_display_get_current_time() and
meta_display_get_current_time_roundtrip() where possible, or
document why it isn't possible, or at very least add a FIXME with
some explanation of my laziness and what needs to be done.
2006-09-18 13:27:24 -04:00
|
|
|
static void meta_window_present_delete_dialog (MetaWindow *window,
|
|
|
|
guint32 timestamp);
|
2002-04-13 00:58:45 -04:00
|
|
|
|
|
|
|
static void
|
|
|
|
delete_ping_reply_func (MetaDisplay *display,
|
|
|
|
Window xwindow,
|
Fix issues on 64-bit machines with timestamps by using guint32 (like gtk+
2006-09-13 Elijah Newren <newren gmail com>
* src/common.h (MetaWindowMenuFunc):
* src/core.[ch] (meta_core_user_lower_and_unfocus,
meta_core_user_focus, meta_core_show_window_menu,
meta_core_begin_grab_op, meta_core_end_grab_op):
* src/delete.c (delete_ping_reply_func, delete_ping_timeout_func,
meta_window_delete):
* src/display.[ch] (struct MetaDisplay, struct MetaPingData,
sanity_check_timestamps, meta_display_open, event_callback,
meta_spew_event, meta_display_set_grab_op_cursor,
meta_display_begin_grab_op, meta_display_end_grab_op,
meta_display_ping_timeout, meta_display_ping_window,
process_pong_message, timestamp_too_old,
meta_display_set_input_focus_window):
* src/keybindings.[ch] (grab_keyboard, ungrab_keyboard,
meta_screen_grab_all_keys, meta_window_grab_all_keys,
meta_window_ungrab_all_keys, error_on_generic_command,
error_on_command, error_on_terminal_command):
* src/metacity-dialog.c (on_realize, warn_about_no_sm_support,
error_about_command, main):
* src/screen.[ch] (struct _MetaScreen, meta_screen_new,
meta_screen_show_desktop, meta_screen_apply_startup_properties):
* src/session.c (warn_about_lame_clients_and_finish_interact):
* src/window.[ch] (struct _MetaWindow,
intervening_user_event_occurred, window_activate,
meta_window_delete, meta_window_focus,
meta_window_send_icccm_message, meta_window_client_message,
menu_callback, meta_window_show_menu, struct EventScannerData,
check_use_this_motion_notify, meta_window_begin_grab_op,
meta_window_set_user_time):
* src/workspace.[ch] (focus_ancestor_or_mru_window,
meta_workspace_activate_with_focus, meta_workspace_activate,
meta_workspace_focus_default_window,
focus_ancestor_or_mru_window):
Fix issues on 64-bit machines with timestamps by using guint32
(like gtk+ does) instead of Time. #348305
2006-09-13 12:32:33 -04:00
|
|
|
guint32 timestamp,
|
2002-04-13 00:58:45 -04:00
|
|
|
void *user_data)
|
|
|
|
{
|
|
|
|
meta_topic (META_DEBUG_PING,
|
|
|
|
"Got reply to delete ping for %s\n",
|
2002-12-08 14:17:17 -05:00
|
|
|
((MetaWindow*)user_data)->desc);
|
2002-04-13 00:58:45 -04:00
|
|
|
|
|
|
|
/* we do nothing */
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2009-11-19 17:38:06 -05:00
|
|
|
dialog_exited (GPid pid, int status, gpointer user_data)
|
2002-04-13 00:58:45 -04:00
|
|
|
{
|
2009-05-05 09:57:58 -04:00
|
|
|
MetaWindow *ours = (MetaWindow*) user_data;
|
MetaDisplay becomes a singleton. The static variable which holds this
2008-03-25 Thomas Thurman <tthurman@gnome.org>
* src/core/display.c (meta_display_queue_retheme_all_windows,
meta_set_syncing, meta_display_set_cursor_theme, disable_compositor,
meta_display_for_x_display, meta_display_open, meta_display_close,
meta_display_ungrab): MetaDisplay becomes a singleton. The static
variable which holds this singleton is renamed "the_display" so as
not to mask the this parameter in the methods.
* src/core/main.c (main):
* src/core/session.c (warn_about_lame_clients_and_finish_inte,
save_state, io_from_warning_dialog):
* src/core/core.c (meta_core_increment_event_serial):
* src/core/delete.c (release_window_with_fd, search_and_destroy_window):
sympathy changes for this, and consequent simplification.
Closes #499301.
svn path=/trunk/; revision=3663
2008-03-24 23:39:13 -04:00
|
|
|
|
2009-11-19 17:38:06 -05:00
|
|
|
ours->dialog_pid = -1;
|
2002-04-13 00:58:45 -04:00
|
|
|
|
2009-11-19 17:38:06 -05:00
|
|
|
/* exit status of 1 means the user pressed "Force Quit" */
|
|
|
|
if (WIFEXITED (status) && WEXITSTATUS (status) == 1)
|
|
|
|
meta_window_kill (ours);
|
2002-04-13 00:58:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
delete_ping_timeout_func (MetaDisplay *display,
|
|
|
|
Window xwindow,
|
Fix issues on 64-bit machines with timestamps by using guint32 (like gtk+
2006-09-13 Elijah Newren <newren gmail com>
* src/common.h (MetaWindowMenuFunc):
* src/core.[ch] (meta_core_user_lower_and_unfocus,
meta_core_user_focus, meta_core_show_window_menu,
meta_core_begin_grab_op, meta_core_end_grab_op):
* src/delete.c (delete_ping_reply_func, delete_ping_timeout_func,
meta_window_delete):
* src/display.[ch] (struct MetaDisplay, struct MetaPingData,
sanity_check_timestamps, meta_display_open, event_callback,
meta_spew_event, meta_display_set_grab_op_cursor,
meta_display_begin_grab_op, meta_display_end_grab_op,
meta_display_ping_timeout, meta_display_ping_window,
process_pong_message, timestamp_too_old,
meta_display_set_input_focus_window):
* src/keybindings.[ch] (grab_keyboard, ungrab_keyboard,
meta_screen_grab_all_keys, meta_window_grab_all_keys,
meta_window_ungrab_all_keys, error_on_generic_command,
error_on_command, error_on_terminal_command):
* src/metacity-dialog.c (on_realize, warn_about_no_sm_support,
error_about_command, main):
* src/screen.[ch] (struct _MetaScreen, meta_screen_new,
meta_screen_show_desktop, meta_screen_apply_startup_properties):
* src/session.c (warn_about_lame_clients_and_finish_interact):
* src/window.[ch] (struct _MetaWindow,
intervening_user_event_occurred, window_activate,
meta_window_delete, meta_window_focus,
meta_window_send_icccm_message, meta_window_client_message,
menu_callback, meta_window_show_menu, struct EventScannerData,
check_use_this_motion_notify, meta_window_begin_grab_op,
meta_window_set_user_time):
* src/workspace.[ch] (focus_ancestor_or_mru_window,
meta_workspace_activate_with_focus, meta_workspace_activate,
meta_workspace_focus_default_window,
focus_ancestor_or_mru_window):
Fix issues on 64-bit machines with timestamps by using guint32
(like gtk+ does) instead of Time. #348305
2006-09-13 12:32:33 -04:00
|
|
|
guint32 timestamp,
|
2002-04-13 00:58:45 -04:00
|
|
|
void *user_data)
|
|
|
|
{
|
|
|
|
MetaWindow *window = user_data;
|
2007-08-03 03:43:03 -04:00
|
|
|
char *window_title;
|
2010-01-05 15:39:50 -05:00
|
|
|
gchar *window_content, *tmp;
|
2009-05-05 09:57:58 -04:00
|
|
|
GPid dialog_pid;
|
2002-04-13 00:58:45 -04:00
|
|
|
|
|
|
|
meta_topic (META_DEBUG_PING,
|
|
|
|
"Got delete ping timeout for %s\n",
|
|
|
|
window->desc);
|
|
|
|
|
|
|
|
if (window->dialog_pid >= 0)
|
|
|
|
{
|
Partial audit to fix timestamp usage. One step towards fixing #355180; see
2006-09-18 Elijah Newren <newren gmail com>
Partial audit to fix timestamp usage. One step towards fixing
#355180; see important comments in that bug.
* src/core.[ch] (meta_core_unshade, meta_core_shade):
* src/delete.c (meta_window_present_delete_dialog,
delete_ping_timeout_func):
* src/display.[ch] (meta_display_open, meta_display_close,
event_callback, meta_display_begin_grab_op,
process_selection_clear, meta_display_unmanage_screen,
meta_display_unmanage_windows_for_screen):
* src/frames.c (meta_frames_button_press_event):
* src/keybindings.c (handle_toggle_shade):
* src/main.c (main):
* src/screen.[ch] (update_num_workspaces, meta_screen_new,
meta_screen_free, prefs_changed_callback):
* src/window.[ch] (meta_window_free, finish_minimize,
implement_showing, meta_window_show, meta_window_maximize,
meta_window_make_fullscreen_internal,
meta_window_unmake_fullscreen, meta_window_shade,
meta_window_unshade, window_activate, send_sync_request,
meta_window_client_message, menu_callback,
meta_window_update_keyboard_resize):
Remove usage of CurrentTime, meta_display_get_current_time() and
meta_display_get_current_time_roundtrip() where possible, or
document why it isn't possible, or at very least add a FIXME with
some explanation of my laziness and what needs to be done.
2006-09-18 13:27:24 -04:00
|
|
|
meta_window_present_delete_dialog (window, timestamp);
|
2002-04-13 00:58:45 -04:00
|
|
|
return;
|
|
|
|
}
|
2003-09-29 12:55:26 -04:00
|
|
|
|
2009-05-05 09:57:58 -04:00
|
|
|
window_title = g_locale_from_utf8 (window->title, -1, NULL, NULL, NULL);
|
2002-04-13 00:58:45 -04:00
|
|
|
|
2010-01-05 15:39:50 -05:00
|
|
|
/* Translators: %s is a window title */
|
|
|
|
tmp = g_strdup_printf (_("<tt>%s</tt> is not responding."),
|
|
|
|
window_title);
|
|
|
|
window_content = g_strdup_printf (
|
|
|
|
"<big><b>%s</b></big>\n\n<i>%s</i>",
|
|
|
|
tmp,
|
|
|
|
_("You may choose to wait a short while for it to "
|
|
|
|
"continue or force the application to quit entirely."));
|
2002-04-13 00:58:45 -04:00
|
|
|
|
2007-08-03 03:43:03 -04:00
|
|
|
g_free (window_title);
|
2009-05-05 09:57:58 -04:00
|
|
|
|
|
|
|
dialog_pid =
|
|
|
|
meta_show_dialog ("--question",
|
|
|
|
window_content, 0,
|
|
|
|
window->screen->number,
|
|
|
|
_("_Wait"), _("_Force Quit"), window->xwindow,
|
|
|
|
NULL, NULL);
|
|
|
|
|
|
|
|
g_free (window_content);
|
2010-01-05 15:39:50 -05:00
|
|
|
g_free (tmp);
|
2009-05-05 09:57:58 -04:00
|
|
|
|
|
|
|
window->dialog_pid = dialog_pid;
|
2009-11-19 17:38:06 -05:00
|
|
|
g_child_watch_add (dialog_pid, dialog_exited, window);
|
2002-04-13 00:58:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_window_delete (MetaWindow *window,
|
Fix issues on 64-bit machines with timestamps by using guint32 (like gtk+
2006-09-13 Elijah Newren <newren gmail com>
* src/common.h (MetaWindowMenuFunc):
* src/core.[ch] (meta_core_user_lower_and_unfocus,
meta_core_user_focus, meta_core_show_window_menu,
meta_core_begin_grab_op, meta_core_end_grab_op):
* src/delete.c (delete_ping_reply_func, delete_ping_timeout_func,
meta_window_delete):
* src/display.[ch] (struct MetaDisplay, struct MetaPingData,
sanity_check_timestamps, meta_display_open, event_callback,
meta_spew_event, meta_display_set_grab_op_cursor,
meta_display_begin_grab_op, meta_display_end_grab_op,
meta_display_ping_timeout, meta_display_ping_window,
process_pong_message, timestamp_too_old,
meta_display_set_input_focus_window):
* src/keybindings.[ch] (grab_keyboard, ungrab_keyboard,
meta_screen_grab_all_keys, meta_window_grab_all_keys,
meta_window_ungrab_all_keys, error_on_generic_command,
error_on_command, error_on_terminal_command):
* src/metacity-dialog.c (on_realize, warn_about_no_sm_support,
error_about_command, main):
* src/screen.[ch] (struct _MetaScreen, meta_screen_new,
meta_screen_show_desktop, meta_screen_apply_startup_properties):
* src/session.c (warn_about_lame_clients_and_finish_interact):
* src/window.[ch] (struct _MetaWindow,
intervening_user_event_occurred, window_activate,
meta_window_delete, meta_window_focus,
meta_window_send_icccm_message, meta_window_client_message,
menu_callback, meta_window_show_menu, struct EventScannerData,
check_use_this_motion_notify, meta_window_begin_grab_op,
meta_window_set_user_time):
* src/workspace.[ch] (focus_ancestor_or_mru_window,
meta_workspace_activate_with_focus, meta_workspace_activate,
meta_workspace_focus_default_window,
focus_ancestor_or_mru_window):
Fix issues on 64-bit machines with timestamps by using guint32
(like gtk+ does) instead of Time. #348305
2006-09-13 12:32:33 -04:00
|
|
|
guint32 timestamp)
|
2002-04-13 00:58:45 -04:00
|
|
|
{
|
|
|
|
meta_error_trap_push (window->display);
|
|
|
|
if (window->delete_window)
|
|
|
|
{
|
|
|
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
|
|
|
"Deleting %s with delete_window request\n",
|
|
|
|
window->desc);
|
|
|
|
meta_window_send_icccm_message (window,
|
2008-05-02 14:49:01 -04:00
|
|
|
window->display->atom_WM_DELETE_WINDOW,
|
2002-04-13 00:58:45 -04:00
|
|
|
timestamp);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
|
|
|
"Deleting %s with explicit kill\n",
|
|
|
|
window->desc);
|
|
|
|
XKillClient (window->display->xdisplay, window->xwindow);
|
|
|
|
}
|
2002-10-21 17:44:35 -04:00
|
|
|
meta_error_trap_pop (window->display, FALSE);
|
2002-04-13 00:58:45 -04:00
|
|
|
|
|
|
|
meta_display_ping_window (window->display,
|
|
|
|
window,
|
|
|
|
timestamp,
|
|
|
|
delete_ping_reply_func,
|
|
|
|
delete_ping_timeout_func,
|
|
|
|
window);
|
|
|
|
|
|
|
|
if (window->has_focus)
|
|
|
|
{
|
2003-09-29 13:35:11 -04:00
|
|
|
/* FIXME Clean this up someday
|
|
|
|
* http://bugzilla.gnome.org/show_bug.cgi?id=108706
|
|
|
|
*/
|
|
|
|
#if 0
|
2002-04-13 00:58:45 -04:00
|
|
|
/* This is unfortunately going to result in weirdness
|
|
|
|
* if the window doesn't respond to the delete event.
|
|
|
|
* I don't know how to avoid that though.
|
|
|
|
*/
|
|
|
|
meta_topic (META_DEBUG_FOCUS,
|
2004-06-24 16:02:46 -04:00
|
|
|
"Focusing default window because focus window %s was deleted/killed\n",
|
2002-04-13 00:58:45 -04:00
|
|
|
window->desc);
|
2004-06-24 16:02:46 -04:00
|
|
|
meta_workspace_focus_default_window (window->screen->active_workspace,
|
|
|
|
window);
|
2003-09-29 13:35:11 -04:00
|
|
|
#else
|
|
|
|
meta_topic (META_DEBUG_FOCUS,
|
|
|
|
"Not unfocusing %s on delete/kill\n",
|
|
|
|
window->desc);
|
|
|
|
#endif
|
2002-04-13 00:58:45 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_topic (META_DEBUG_FOCUS,
|
|
|
|
"Window %s was deleted/killed but didn't have focus\n",
|
|
|
|
window->desc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_window_kill (MetaWindow *window)
|
|
|
|
{
|
|
|
|
char buf[257];
|
|
|
|
|
|
|
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
|
|
|
"Killing %s brutally\n",
|
|
|
|
window->desc);
|
|
|
|
|
|
|
|
if (window->wm_client_machine != NULL &&
|
|
|
|
window->net_wm_pid > 0)
|
|
|
|
{
|
|
|
|
if (gethostname (buf, sizeof(buf)-1) == 0)
|
|
|
|
{
|
|
|
|
if (strcmp (buf, window->wm_client_machine) == 0)
|
|
|
|
{
|
|
|
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
|
|
|
"Killing %s with kill()\n",
|
|
|
|
window->desc);
|
|
|
|
|
|
|
|
if (kill (window->net_wm_pid, 9) < 0)
|
|
|
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
|
|
|
"Failed to signal %s: %s\n",
|
|
|
|
window->desc, strerror (errno));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_warning (_("Failed to get hostname: %s\n"),
|
|
|
|
strerror (errno));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
meta_topic (META_DEBUG_WINDOW_OPS,
|
|
|
|
"Disconnecting %s with XKillClient()\n",
|
|
|
|
window->desc);
|
|
|
|
meta_error_trap_push (window->display);
|
|
|
|
XKillClient (window->display->xdisplay, window->xwindow);
|
2002-10-21 17:44:35 -04:00
|
|
|
meta_error_trap_pop (window->display, FALSE);
|
2002-04-13 00:58:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_window_free_delete_dialog (MetaWindow *window)
|
|
|
|
{
|
|
|
|
if (window->dialog_pid >= 0)
|
|
|
|
{
|
|
|
|
kill (window->dialog_pid, 9);
|
|
|
|
window->dialog_pid = -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
Partial audit to fix timestamp usage. One step towards fixing #355180; see
2006-09-18 Elijah Newren <newren gmail com>
Partial audit to fix timestamp usage. One step towards fixing
#355180; see important comments in that bug.
* src/core.[ch] (meta_core_unshade, meta_core_shade):
* src/delete.c (meta_window_present_delete_dialog,
delete_ping_timeout_func):
* src/display.[ch] (meta_display_open, meta_display_close,
event_callback, meta_display_begin_grab_op,
process_selection_clear, meta_display_unmanage_screen,
meta_display_unmanage_windows_for_screen):
* src/frames.c (meta_frames_button_press_event):
* src/keybindings.c (handle_toggle_shade):
* src/main.c (main):
* src/screen.[ch] (update_num_workspaces, meta_screen_new,
meta_screen_free, prefs_changed_callback):
* src/window.[ch] (meta_window_free, finish_minimize,
implement_showing, meta_window_show, meta_window_maximize,
meta_window_make_fullscreen_internal,
meta_window_unmake_fullscreen, meta_window_shade,
meta_window_unshade, window_activate, send_sync_request,
meta_window_client_message, menu_callback,
meta_window_update_keyboard_resize):
Remove usage of CurrentTime, meta_display_get_current_time() and
meta_display_get_current_time_roundtrip() where possible, or
document why it isn't possible, or at very least add a FIXME with
some explanation of my laziness and what needs to be done.
2006-09-18 13:27:24 -04:00
|
|
|
meta_window_present_delete_dialog (MetaWindow *window, guint32 timestamp)
|
2002-04-13 00:58:45 -04:00
|
|
|
{
|
|
|
|
meta_topic (META_DEBUG_PING,
|
|
|
|
"Presenting existing ping dialog for %s\n",
|
|
|
|
window->desc);
|
|
|
|
|
|
|
|
if (window->dialog_pid >= 0)
|
|
|
|
{
|
|
|
|
GSList *windows;
|
|
|
|
GSList *tmp;
|
|
|
|
|
|
|
|
/* Activate transient for window that belongs to
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 06:29:20 -04:00
|
|
|
* mutter-dialog
|
2002-04-13 00:58:45 -04:00
|
|
|
*/
|
|
|
|
|
2009-06-15 15:32:23 -04:00
|
|
|
windows = meta_display_list_windows (window->display, META_LIST_DEFAULT);
|
2002-04-13 00:58:45 -04:00
|
|
|
tmp = windows;
|
|
|
|
while (tmp != NULL)
|
|
|
|
{
|
|
|
|
MetaWindow *w = tmp->data;
|
|
|
|
|
|
|
|
if (w->xtransient_for == window->xwindow &&
|
|
|
|
w->res_class &&
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 06:29:20 -04:00
|
|
|
g_ascii_strcasecmp (w->res_class, "mutter-dialog") == 0)
|
2002-04-13 00:58:45 -04:00
|
|
|
{
|
Partial audit to fix timestamp usage. One step towards fixing #355180; see
2006-09-18 Elijah Newren <newren gmail com>
Partial audit to fix timestamp usage. One step towards fixing
#355180; see important comments in that bug.
* src/core.[ch] (meta_core_unshade, meta_core_shade):
* src/delete.c (meta_window_present_delete_dialog,
delete_ping_timeout_func):
* src/display.[ch] (meta_display_open, meta_display_close,
event_callback, meta_display_begin_grab_op,
process_selection_clear, meta_display_unmanage_screen,
meta_display_unmanage_windows_for_screen):
* src/frames.c (meta_frames_button_press_event):
* src/keybindings.c (handle_toggle_shade):
* src/main.c (main):
* src/screen.[ch] (update_num_workspaces, meta_screen_new,
meta_screen_free, prefs_changed_callback):
* src/window.[ch] (meta_window_free, finish_minimize,
implement_showing, meta_window_show, meta_window_maximize,
meta_window_make_fullscreen_internal,
meta_window_unmake_fullscreen, meta_window_shade,
meta_window_unshade, window_activate, send_sync_request,
meta_window_client_message, menu_callback,
meta_window_update_keyboard_resize):
Remove usage of CurrentTime, meta_display_get_current_time() and
meta_display_get_current_time_roundtrip() where possible, or
document why it isn't possible, or at very least add a FIXME with
some explanation of my laziness and what needs to be done.
2006-09-18 13:27:24 -04:00
|
|
|
meta_window_activate (w, timestamp);
|
2002-04-13 00:58:45 -04:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
tmp = tmp->next;
|
|
|
|
}
|
|
|
|
|
|
|
|
g_slist_free (windows);
|
|
|
|
}
|
|
|
|
}
|