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)
This commit is contained in:
parent
1e05106801
commit
6ebd463287
@ -1,3 +1,10 @@
|
||||
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:
|
||||
|
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user