From mint-bounce@lists.fishpool.fi Sat Sep 11 06:43:04 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type:subject :date:message-id:to:mime-version:x-mailer; bh=DlhcUNNdWzk2eVJRlcW+f69j98eah7FbDOjfsowoENY=; b=kccPz2yyfd5qFXOGfBg1qHNEPeC0c24ZHlRyaf3D+tvLrpUJkTYeIn2PSCbmUBsiVj Dh8LhNsh76TUqpH73TUQ4u634Bd4wlRlTeYJdlacgVvvOvYnfdIh2jcQ9ZaB+YSpPcs9 6LoEN1QLC2AwdRyMOjF1EbQjT3CE6iI/ypbII= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer; b=APlsMGhF9U5Wba/6EX4gmsOZawfnN6T3BfWvcLQWglZS1oLxBBWvIiHQoffAPcj0Z1 FutrEH1bA+C4ba2jKcVdweCJRHVQrR5d6eEggcE/9txR43by0dsOVpId6uxL53UQfv4w 6cIbVTG/kEryWR+10ARnR6x6YoTE45C9tj6s0= From: Peter Persson Content-Type: multipart/alternative; boundary=Apple-Mail-2-951698939 Subject: [MiNT] Workaround for the XaAES-iconify-menubar-bug. Date: Sat, 11 Sep 2010 12:39:36 +0200 Message-Id: <16F84FF2-4C49-40DB-86DC-089B8AC60524@gmail.com> To: mint Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --Apple-Mail-2-951698939 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, To whom it may concern - it seems the bug related to menubars in windows = in combination with iconify can be dealt with as follows: wind_close(w->handle); = =09 = wind_set_grect(w->handle, WF_UNICONIFY, &msg[4]); = wind_get_grect(w->handle, WF_WORKXYWH, &w->work); wind_delete(w->handle); w->handle =3D = wind_create_grect(w->parts, &w->work); =09 wind_set(w->handle, = WF_NAME, ((UINT32)w->title) >> 16, ((UINT32)w->title) & 0xffff, 0, 0); =09 wind_set(w->handle, = WF_OPTS, 1, WO0_WCOWORK, 0, 0); /* work with work area coordinates */ wind_set(w->handle, = WF_WHEEL, 1, 0, 0, 0); /* generate WM_WHEEL */ if(w->menu_tree) = wind_set(w->handle, WF_MENU, (((UINT32)w->menu_tree)>>16), = ((UINT32)w->menu_tree) & 0xffff, 0, 0); = wind_open_grect(w->handle, &w->work); I don't know how kosher all this is, but I haven't noticed any side = effects so far. Naturally it'll only work if you have some kind = extraction for the window handling, like I do. The remainder of the = project have no clue as to what a window handle is, so I'm free to = change it whenever I want to. -- PeP= --Apple-Mail-2-951698939 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii = wind_close(w->handle); =

= wind_set_grect(w->handle, WF_UNICONIFY, &msg[4]);
= wind_get_grect(w->handle, WF_WORKXYWH, = &w->work);

= wind_delete(w->handle);
= w->handle =3D wind_create_grect(w->parts, = &w->work);

=

= wind_set(w->handle, WF_NAME, = ((UINT32)w->title) >> 16, = ((UINT32)w->title) & 0xffff, 0, 0);

=

= wind_set(w->handle, WF_OPTS, 1, WO0_WCOWORK, 0, 0); /* work with work area coordinates = */
= wind_set(w->handle, WF_WHEEL, 1, 0, 0, 0); /* generate WM_WHEEL = */

= if(w->menu_tree)
= wind_set(w->handle, WF_MENU, = (((UINT32)w->menu_tree)>>16), ((UINT32)w->menu_tree) & 0xffff, 0, 0);

= wind_open_grect(w->handle, = &w->work);

I don't know how kosher = all this is, but I haven't noticed any side effects so far. Naturally = it'll only work if you have some kind extraction for the window = handling, like I do. The remainder of the project have no clue as to = what a window handle is, so I'm free to change it whenever I want = to.

-- PeP
= --Apple-Mail-2-951698939--