Commit 75231bad authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(x_wm_set_icon_position, x_wm_set_icon_pixmap):

[USE_X_TOOLKIT]: Use top-level widget's window.
parent 908fee49
......@@ -5990,7 +5990,11 @@ x_wm_set_icon_pixmap (f, icon_pixmap)
struct frame *f;
Pixmap icon_pixmap;
{
#ifdef USE_X_TOOLKIT
Window window = XtWindow (f->display.x->widget);
#else
Window window = FRAME_X_WINDOW (f);
#endif
if (icon_pixmap)
{
......@@ -6007,7 +6011,11 @@ x_wm_set_icon_position (f, icon_x, icon_y)
struct frame *f;
int icon_x, icon_y;
{
#ifdef USE_X_TOOLKIT
Window window = XtWindow (f->display.x->widget);
#else
Window window = FRAME_X_WINDOW (f);
#endif
f->display.x->wm_hints.flags |= IconPositionHint;
f->display.x->wm_hints.icon_x = icon_x;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment