Fix wm_size-hints race between KDE/KWin and Gtk+ 3.
commitc7e73be5f7c8f5d24757ace235bc622a9a7fdcd0
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 26 Jun 2011 18:47:07 +0000 (26 20:47 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 26 Jun 2011 18:47:07 +0000 (26 20:47 +0200)
treed32a59317249eaa9958627f1a6a3584db670ba46
parent247f696e50461a50306bc77d3683007bd06e8ba7
Fix wm_size-hints race between KDE/KWin and Gtk+ 3.

* emacsgtkfixed.c: State that this is only used with Gtk+3.
(_EmacsFixedPrivate): Remove minwidth/height.
Add struct frame *f.
(emacs_fixed_init): Initialize priv->f.
(get_parent_class, emacs_fixed_set_min_size): Remove.
(emacs_fixed_new): Set priv->f to argument.
(emacs_fixed_get_preferred_width)
(emacs_fixed_get_preferred_height): Use min_width/height from
frames size_hint to set minimum and natural.
(XSetWMSizeHints, XSetWMNormalHints): Override these functions
and use min_width/height from frames size_hint to set
min_width/height (Bug#8919).

* emacsgtkfixed.h: State that this is only used with Gtk+3.
(emacs_fixed_set_min_size): Remove.
(emacs_fixed_new): Take frame as argument.

* gtkutil.c (xg_create_frame_widgets): Pass f to emacs_fixed_new.
(x_wm_set_size_hint): Remove call to emacs_fixed_set_min_size. Fix
indentation.
src/ChangeLog
src/emacsgtkfixed.c
src/emacsgtkfixed.h
src/gtkutil.c