3 * Copyright (C) 2005 Imendio AB
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
24 #include <ApplicationServices/ApplicationServices.h>
26 const GOptionEntry _gdk_windowing_args[] = {
31 _gdk_windowing_init (void)
33 ProcessSerialNumber psn = { 0, kCurrentProcess };
35 /* Make the current process a foreground application, i.e. an app
36 * with a user interface, in case we're not running from a .app bundle
38 TransformProcessType (&psn, kProcessTransformToForegroundApplication);
42 gdk_error_trap_push (void)
47 gdk_error_trap_pop (void)
53 gdk_get_display (void)
55 return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
59 gdk_notify_startup_complete (void)
61 /* FIXME: Implement */
66 _gdk_windowing_display_set_sm_client_id (GdkDisplay *display,
67 const gchar *sm_client_id)
72 gdk_set_use_xshm (gboolean use_xshm)
74 /* Always on, since we're always on the local machine */
78 gdk_get_use_xshm (void)