|
Lines 48-58
Link Here
|
| 48 |
#include <windows.h> |
48 |
#include <windows.h> |
| 49 |
#else |
49 |
#else |
| 50 |
#include <sys/wait.h> |
50 |
#include <sys/wait.h> |
|
|
51 |
|
| 52 |
#ifdef GDK_WINDOWING_X11 |
| 51 |
#include <gdk/gdkx.h> |
53 |
#include <gdk/gdkx.h> |
| 52 |
|
54 |
|
| 53 |
#if GTK_MAJOR_VERSION < 3 |
55 |
#if GTK_MAJOR_VERSION < 3 |
| 54 |
#include <X11/Xatom.h> |
56 |
#include <X11/Xatom.h> |
| 55 |
#endif |
57 |
#endif |
|
|
58 |
#endif |
| 56 |
#endif |
59 |
#endif |
| 57 |
|
60 |
|
| 58 |
// GTK 2 does not define keyboard aliases the way we do |
61 |
// GTK 2 does not define keyboard aliases the way we do |
|
Lines 3170-3175
void window_screen_changed_callback(GtkWidget *widget, GdkScreen *previous_scree
Link Here
|
| 3170 |
void window_realize_callback(GtkWidget *widget, gpointer user_data) {/*{{{*/ |
3173 |
void window_realize_callback(GtkWidget *widget, gpointer user_data) {/*{{{*/ |
| 3171 |
if(option_start_fullscreen) { |
3174 |
if(option_start_fullscreen) { |
| 3172 |
#ifndef _WIN32 |
3175 |
#ifndef _WIN32 |
|
|
3176 |
#ifdef GDK_WINDOWING_X11 |
| 3173 |
GdkScreen *screen = gdk_screen_get_default(); |
3177 |
GdkScreen *screen = gdk_screen_get_default(); |
| 3174 |
if(strcmp("unknown", gdk_x11_screen_get_window_manager_name(screen)) == 0) { |
3178 |
if(strcmp("unknown", gdk_x11_screen_get_window_manager_name(screen)) == 0) { |
| 3175 |
// No window manager present. We need some oher means to fullscreen. |
3179 |
// No window manager present. We need some oher means to fullscreen. |
|
Lines 3180-3185
void window_realize_callback(GtkWidget *widget, gpointer user_data) {/*{{{*/
Link Here
|
| 3180 |
window_state_into_fullscreen_actions(); |
3184 |
window_state_into_fullscreen_actions(); |
| 3181 |
} |
3185 |
} |
| 3182 |
#endif |
3186 |
#endif |
|
|
3187 |
#endif |
| 3183 |
|
3188 |
|
| 3184 |
gtk_window_fullscreen(main_window); |
3189 |
gtk_window_fullscreen(main_window); |
| 3185 |
} |
3190 |
} |
|
Lines 3257-3267
void create_window() { /*{{{*/
Link Here
|
| 3257 |
// If no WM is present, move the window to the screen origin and |
3262 |
// If no WM is present, move the window to the screen origin and |
| 3258 |
// assume fullscreen right from the start |
3263 |
// assume fullscreen right from the start |
| 3259 |
#ifndef _WIN32 |
3264 |
#ifndef _WIN32 |
|
|
3265 |
#ifdef GDK_WINDOWING_X11 |
| 3260 |
if(strcmp("unknown", gdk_x11_screen_get_window_manager_name(screen)) == 0) { |
3266 |
if(strcmp("unknown", gdk_x11_screen_get_window_manager_name(screen)) == 0) { |
| 3261 |
main_window_in_fullscreen = TRUE; |
3267 |
main_window_in_fullscreen = TRUE; |
| 3262 |
gtk_window_move(main_window, screen_geometry.x, screen_geometry.y); |
3268 |
gtk_window_move(main_window, screen_geometry.x, screen_geometry.y); |
| 3263 |
} |
3269 |
} |
| 3264 |
#endif |
3270 |
#endif |
|
|
3271 |
#endif |
| 3265 |
gtk_window_fullscreen(main_window); |
3272 |
gtk_window_fullscreen(main_window); |
| 3266 |
} |
3273 |
} |
| 3267 |
else if(option_window_position.x >= 0) { |
3274 |
else if(option_window_position.x >= 0) { |