From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45ac63056307c841a8e7a0b88b7ed26a@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: Re: [9fans] color of window border From: Fco.J.Ballesteros In-Reply-To: <2324ef413663ec175a9c6128abfc5499@uni-bielefeld.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-fqqwwujzoxngzyanejmtvoxexw" Date: Tue, 30 Sep 2003 17:13:10 +0200 Topicbox-Message-UUID: 580b802e-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-fqqwwujzoxngzyanejmtvoxexw Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit there was a lock.c posted to the list some time ago. It's what we use. Take a look at it; I think that'll answer you questions. hth --upas-fqqwwujzoxngzyanejmtvoxexw Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by aquamar; Tue Sep 30 17:10:40 MDT 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 27A1A19A7F; Tue, 30 Sep 2003 11:10:34 -0400 (EDT) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 1D70719C03; Tue, 30 Sep 2003 11:10:22 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 96B6C19A7F; Tue, 30 Sep 2003 11:09:15 -0400 (EDT) Received: from mail1.hrz.uni-bielefeld.de (mail1.hrz.uni-bielefeld.de [129.70.4.88]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id D0EFF19BA5 for <9fans@cse.psu.edu>; Tue, 30 Sep 2003 11:09:03 -0400 (EDT) Received: from conversion-daemon.mail1.hrz.uni-bielefeld.de by mail1.hrz.uni-bielefeld.de (iPlanet Messaging Server 5.2 HotFix 1.15 (built Apr 28 2003)) id <0HM1008018LUH1@mail1.hrz.uni-bielefeld.de> for 9fans@cse.psu.edu; Tue, 30 Sep 2003 17:09:03 +0200 (MEST) Received: from plan9.hrz.uni-bielefeld.de ([129.70.3.9]) by mail1.hrz.uni-bielefeld.de (iPlanet Messaging Server 5.2 HotFix 1.15 (built Apr 28 2003)) with ESMTPP id <0HM100G0N8R2A1@mail1.hrz.uni-bielefeld.de> for 9fans@cse.psu.edu; Tue, 30 Sep 2003 17:09:02 +0200 (MEST) From: Christian Grothaus Subject: Re: [9fans] color of window border In-reply-to: <91d6a5598b745cdfb742984515f4ce64@vitanuova.com> To: 9fans@cse.psu.edu Message-id: <2324ef413663ec175a9c6128abfc5499@uni-bielefeld.de> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 30 Sep 2003 17:09:19 +0200 X-Spam-Status: No, hits=-2.0 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) On Tue Sep 30 16:08:56 MDT 2003, rog@vitanuova.com wrote: > if your window doesn't move, you *can* change the window border colour > (probably by drawing on _screen->image, although i haven't checked). Cool, it works! (Since I once tried to write a screensaver myself, I tried it out.) I did back=allocimage(display, Rect(0, 0, 1, 1), CMAP8, 1, DBlack); draw(_screen->image, _screen->image->r, back, nil, ZP); (If you put the draw() call in eresized, it doesn't even matter if the window is moved or resized.) But how is it possible in rio to create a window exactly as large as the screen (without modifying the source)? Also, for a screensaver, the mouse has to be hidden (or disabled if the screen is to be locked). It would be nice to have a screensaver/-locker in Plan 9, maybe one that incorporates Andrey's xscreensaver ports! We have all the pieces, there's just some cosmetics left to do. Christian --upas-fqqwwujzoxngzyanejmtvoxexw--