summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/terminal.c b/src/terminal.c
index f9989a5..3569f4f 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -32,17 +32,9 @@
#include <gio/gio.h>
#include <gdk/gdk.h>
-
-#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
-#ifndef GDK_IS_X11_DISPLAY
-#define GDK_IS_X11_DISPLAY(display) 1
-#endif
-#endif
-#ifdef WITH_SMCLIENT
#include "eggsmclient.h"
-#endif
#include "terminal-accels.h"
#include "terminal-app.h"
@@ -442,7 +434,6 @@ name_lost_cb (GDBusConnection *connection,
*
*/
-#ifdef GDK_WINDOWING_X11
/* Copied from libcaja/caja-program-choosing.c; Needed in case
* we have no DESKTOP_STARTUP_ID (with its accompanying timestamp).
*/
@@ -493,7 +484,6 @@ slowly_and_stupidly_obtain_timestamp (Display *xdisplay)
return event.xproperty.time;
}
-#endif
static char *
get_factory_name_for_display (const char *display_name)
@@ -588,9 +578,7 @@ main (int argc, char **argv)
&argc, &argv,
&error,
gtk_get_option_group (TRUE),
-#ifdef WITH_SMCLIENT
egg_sm_client_get_option_group (),
-#endif
NULL);
g_free (working_directory);
@@ -615,8 +603,7 @@ main (int argc, char **argv)
display_name = gdk_display_get_name (display);
options->display_name = g_strdup (display_name);
-#ifdef GDK_WINDOWING_X11
- if (GDK_IS_X11_DISPLAY(display) && options->startup_id == NULL)
+ if (options->startup_id == NULL)
{
/* Create a fake one containing a timestamp that we can use */
Time timestamp;
@@ -625,7 +612,6 @@ main (int argc, char **argv)
options->startup_id = g_strdup_printf ("_TIME%lu", timestamp);
}
-#endif
if (options->use_factory)
{