diff options
author | Havoc Pennington <hp@pobox.com> | 2002-02-23 22:58:02 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-02-23 22:58:02 +0000 |
commit | 20218dac92fff9667e618de059f7f2c10f8af126 (patch) | |
tree | fcad95a52415e79df06cee3a97e0ed4b8c4f9f91 /src/ui.c | |
parent | 214ac20a69bdfeaa1de183a07e336914ab953530 (diff) | |
download | metacity-20218dac92fff9667e618de059f7f2c10f8af126.tar.gz |
put in hack to keep Pango from mangling our server grab and locking up on
2002-02-19 Havoc Pennington <hp@pobox.com>
* src/ui.c (meta_ui_init): put in hack to keep Pango from mangling
our server grab and locking up on startup. (hack doesn't work
but I want to fix it on my real computer not this laptop)
* src/window.c: Implement _NET_WM_STATE_FULLSCREEN
* src/display.c (meta_display_open): add atoms for
_NET_WM_STATE_FULLSCREEN
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -29,6 +29,8 @@ #include "inlinepixbufs.h" +#include <pango/pangox.h> + struct _MetaUI { Display *xdisplay; @@ -42,14 +44,13 @@ meta_ui_init (int *argc, char ***argv) if (!gtk_init_check (argc, argv)) meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL)); - { - /* FIXME this is a hackaround for a GTK bug with using menus without - * menubars. we have to use the get_type value since it's G_GNUC_CONST - */ - volatile GType t; - t = gtk_menu_bar_get_type (); - t += 5; - } + /* FIXME hackaround for Pango opening a separate display + * connection and doing a server grab while we have a grab + * on the primary display connection. This forces Pango to + * go ahead and do its font cache before we try to grab + * the server. + */ + pango_x_font_map_for_display (gdk_display); } Display* |