Commit 6ebd4632 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson
Browse files

Make the process a foreground application. (#322481, Wolfgang Thaller)

2006-01-18  Anders Carlsson  <andersca@imendio.com>

        * gdk/quartz/gdkmain-quartz.c:
        (_gdk_windowing_init):
        Make the process a foreground application.
        (#322481, Wolfgang Thaller)
parent 1e051068
2006-01-18 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkmain-quartz.c:
(_gdk_windowing_init):
Make the process a foreground application.
(#322481, Wolfgang Thaller)
2006-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrbtree.c:
......
2006-01-18 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkmain-quartz.c:
(_gdk_windowing_init):
Make the process a foreground application.
(#322481, Wolfgang Thaller)
2006-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrbtree.c:
......
......@@ -21,6 +21,7 @@
#include <config.h>
#include "gdk.h"
#include <ApplicationServices/ApplicationServices.h>
GOptionEntry _gdk_windowing_args[] = {
{ NULL }
......@@ -29,6 +30,13 @@ GOptionEntry _gdk_windowing_args[] = {
void
_gdk_windowing_init (void)
{
ProcessSerialNumber psn;
/* Make the current process a foreground application, i.e. an app
* with a user interface, in case we're not running from a .app bundle
*/
GetCurrentProcess (&psn);
TransformProcessType (&psn, kProcessTransformToForegroundApplication);
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment