set _NET_WM_NAME hint as a UTF8_STRING not STRING. Patch from Anders.

2001-08-07 Havoc Pennington  <hp@pobox.com>

	* src/display.c (meta_display_open): set _NET_WM_NAME
	hint as a UTF8_STRING not STRING. Patch from Anders.
This commit is contained in:
Havoc Pennington 2001-08-07 05:52:51 +00:00 committed by rhp
parent d6bf2f5e80
commit fc8db63716
5 changed files with 29 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2001-08-07 Havoc Pennington <hp@pobox.com>
* src/display.c (meta_display_open): set _NET_WM_NAME
hint as a UTF8_STRING not STRING. Patch from Anders.
2001-08-06 Havoc Pennington <hp@redhat.com>
* src/effects.c: disable opaque animations by default, current

View File

@ -1,4 +1,8 @@
Don't commit substantive code in here without asking me,
hp@redhat.com. Adding translations, no-brainer typo fixes, etc. is
fine.
The script src/run-metacity.sh is useful to hack on the window manager.
It runs metacity in an Xnest. e.g.:
CLIENTS=3 ./run-metacity.sh

7
README
View File

@ -252,6 +252,11 @@ METACITY BUGS, NON-FEATURES, AND CAVEATS
setting the new non-legacy type hint, but a panel with that
patch hasn't been released yet.
- The minimize/shade animation leaves "dirt" on Metacity's own frames,
because Metacity handles exposes on its own frames during the
animation. We could fix this with a horrible GDK hack of some kind.
I'm not sure of the best way yet.
FAQ
===
@ -273,6 +278,8 @@ A: If it makes sense to turn on unconditionally,
probably constitute crackrock, they confuse most users
and really are not that useful if you have a decent tasklist and
so on. But I am too used to them to turn them off.
Or alternatively iconification/tasklist is crack, and workspaces/pager
are good. But having both is certainly a bit wrong.
Sloppy focus is probably crackrock too. Oh, and my Alt-1 thru Alt-6
keybindings are definitely on crack.

View File

@ -68,7 +68,7 @@ unsigned_long_hash (gconstpointer v)
}
static int
set_string_hint (MetaDisplay *display,
set_utf8_string_hint (MetaDisplay *display,
Window xwindow,
Atom atom,
const char *val)
@ -76,7 +76,7 @@ set_string_hint (MetaDisplay *display,
meta_error_trap_push (display);
XChangeProperty (display->xdisplay,
xwindow, atom,
XA_STRING,
display->atom_utf8_string,
8, PropModeReplace, (guchar*) val, strlen (val) + 1);
return meta_error_trap_pop (display);
}
@ -131,7 +131,8 @@ meta_display_open (const char *name)
"_WIN_SUPPORTING_WM_CHECK",
"_NET_WM_ICON_NAME",
"_NET_WM_ICON",
"_NET_WM_ICON_GEOMETRY"
"_NET_WM_ICON_GEOMETRY",
"UTF8_STRING"
};
Atom atoms[G_N_ELEMENTS(atom_names)];
@ -214,6 +215,7 @@ meta_display_open (const char *name)
display->atom_net_wm_icon_name = atoms[36];
display->atom_net_wm_icon = atoms[37];
display->atom_net_wm_icon_geometry = atoms[38];
display->atom_utf8_string = atoms[39];
/* Offscreen unmapped window used for _NET_SUPPORTING_WM_CHECK,
* created in screen_new
@ -283,7 +285,7 @@ meta_display_open (const char *name)
display->grab_op = META_GRAB_OP_NONE;
display->grab_window = NULL;
set_string_hint (display,
set_utf8_string_hint (display,
display->leader_window,
display->atom_net_wm_name,
"Metacity");

View File

@ -96,6 +96,7 @@ struct _MetaDisplay
Atom atom_net_wm_icon_name;
Atom atom_net_wm_icon;
Atom atom_net_wm_icon_geometry;
Atom atom_utf8_string;
/* This is the actual window from focus events,
* not the one we last set