Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
New version of the fullscreen patch
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vebjorn Ljosa  
View profile  
 More options Jun 3 2008, 11:25 am
From: Vebjorn Ljosa <vebj...@ljosa.com>
Date: Tue, 03 Jun 2008 11:25:51 -0400
Local: Tues, Jun 3 2008 11:25 am
Subject: New version of the fullscreen patch
I have continued (and maybe finished?) making the full-screen
functionality in Carbon Emacs compatible with the X port.  For those who
didn't read the previous thread: Per Seiji's suggestion, the patch
disposes of the mac-toggle-max-window command and instead ties the
full-screen mode to the frame parameter 'fullscreen, like the X port:

  (set-frame-parameter nil 'fullscreen 'fullboth)
  (set-frame-parameter nil 'fullscreen 'fullheight)
  (set-frame-parameter nil 'fullscreen 'fullwidth)
  (set-frame-parameter nil 'fullscreen nil)

The new patch and a build (for easy testing) are here:

  http://www.ljosa.com/~ljosa/carbonemacs/fullscreen-patch-20080603.diff

  http://www.ljosa.com/~ljosa/carbonemacs/fullscreen-20080603.dmg

The new version differs from my previous attempt in the following ways:

 * Properly restores the original size of the window and the menu bar
   when leaving full-screen mode.  (This would sometimes break in my
   previous patch, e.g., when the frame parameter went nil -> 'fullboth
   -> 'fullheight -> nil.)

 * Keeps the menu bar and title bar in 'fullwidth and 'fullheight mode.

 * Cleaner and shorter code; uses the frame parameter
   'fullscreen-saved-state to store the original frame position and
   size.

 * Turns off the menu bar only for frames on the main display.  (Thanks,
   David!)

 * Turns off the menu bar only for frames in 'fullboth mode (so you can
   now have multiple frames, some in 'fullboth mode and some not,
   without problems).

Seiji, I know you suggested hiding the menu bar for all frames when one
frame is in full-screen mode, but try the current patch.  I think you
will like the way it handles the menu bar, which is consistent both with
the GTK port of Emacs and with various Mac applications.

Vebjorn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jun 4 2008, 8:03 am
From: Seiji Zenitani <zenit...@mac.com>
Date: Wed, 04 Jun 2008 05:03:25 -0700
Local: Wed, Jun 4 2008 8:03 am
Subject: Re: [carbon-emacs:944] New version of the fullscreen patch
Hi,

It excellently works on my laptop.
I am happy if someone examines it on an external display, too.
I will try to re-organize the relevant patches this weekend.

Cheers
Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jun 6 2008, 4:19 am
From: Seiji Zenitani <zenit...@mac.com>
Date: Fri, 06 Jun 2008 04:19:37 -0400
Local: Fri, Jun 6 2008 4:19 am
Subject: Re: [carbon-emacs:945] Re: New version of the fullscreen patch
On 2008/06/04, at 8:03, Seiji Zenitani wrote:

> Hi,

> It excellently works on my laptop.
> I am happy if someone examines it on an external display, too.
> I will try to re-organize the relevant patches this weekend.

I've re-organized the patches in the svn trunk.
BTW, who are the authors?
Does the fullscreen patch also contain
Joel and David's code?

Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vebjorn Ljosa  
View profile  
 More options Jun 6 2008, 9:38 am
From: Vebjorn Ljosa <vebj...@ljosa.com>
Date: Fri, 06 Jun 2008 09:38:37 -0400
Local: Fri, Jun 6 2008 9:38 am
Subject: Re: [carbon-emacs:949] Re: New version of the fullscreen patch

Seiji Zenitani <zenit...@mac.com> writes:
> I've re-organized the patches in the svn trunk.

Great, thanks!

> BTW, who are the authors?
> Does the fullscreen patch also contain
> Joel and David's code?

Yes, absolutely.  The code that finds the display ID of a mac window is
unchanged.  (Not sure whether it originated with Joel or David.)  And
Joel or David had already figured out how to use the Mac's Window
Manager API to achieve the desired effects; my mac_fullscreen_hook
builds on that previous work.

Vebjorn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jun 6 2008, 6:41 pm
From: Seiji Zenitani <zenit...@gmail.com>
Date: Fri, 6 Jun 2008 18:41:53 -0400
Local: Fri, Jun 6 2008 6:41 pm
Subject: Re: [carbon-emacs:952] Re: New version of the fullscreen patch

Hi,

I tested the latest fullscreen code on an external display.
My display configuration is described in the attached file;
a wider sub screen (an external display) is
located on the left side of the main screen.

Everything is file on the main screen,
however, there is a glitch on the sub screen.
For example, when I set the fullscreen frame parameter
to 'fullwidth on a sub screen,
the frame shows up both on the main screen
and on the sub screen, as shown in the PDF file.
The width of the frame seems to be correct:
it's same as the width of the sub screen.

  fullscreen.pdf
12K Download

Can anyone fix this?

On 2008/06/06, at 9:38, Vebjorn Ljosa wrote:

Thanks.
I will acknowledge the three authors in the relevant documents.

Sincerely,
Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Reitter  
View profile  
 More options Jun 9 2008, 1:45 pm
From: David Reitter <david.reit...@gmail.com>
Date: Mon, 9 Jun 2008 18:45:23 +0100
Local: Mon, Jun 9 2008 1:45 pm
Subject: Re: [carbon-emacs:953] Re: New version of the fullscreen patch

I've been having trouble with the old version of the patch when  
changing font settings.  If you change the font (e.g., with  M-x set-
frame-font, or with the font panel), the frame resizes, and it is not  
full-screen any longer.

I haven't installed the new patch yet.  It would be interesting to see  
if things work better with that.

- David

On 6 Jun 2008, at 23:41, Seiji Zenitani wrote:

  smime.p7s
2K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vebjorn Ljosa  
View profile  
 More options Jun 9 2008, 2:16 pm
From: Vebjorn Ljosa <vebj...@ljosa.com>
Date: Mon, 09 Jun 2008 14:16:49 -0400
Local: Mon, Jun 9 2008 2:16 pm
Subject: Re: [carbon-emacs:953] Re: New version of the fullscreen patch

Seiji Zenitani <zenit...@gmail.com> writes:
> I tested the latest fullscreen code on an external display.  My
> display configuration is described in the attached file; a wider sub
> screen (an external display) is located on the left side of the main
> screen.

> Everything is file on the main screen, however, there is a glitch on
> the sub screen.  For example, when I set the fullscreen frame
> parameter to 'fullwidth on a sub screen, the frame shows up both on
> the main screen and on the sub screen, as shown in the PDF file.  The
> width of the frame seems to be correct: it's same as the width of the
> sub screen.

The background for this bug is that the origin of the display on a Mac
is in the top-left corner of the main display.  In your setup, the main
display is on the right, so a window on your external display will have
negative X-coordinates.  X11, however, does not use negative
coordinates.  Instead, a negative sign indicates that the coordinate is
relative to the right or bottom edge of the display (rather than the
left or top).  There is code in macterm.c (e.g.,
x_calc_absolute_position) that simulates the X11 behavior.

The bug was present even before my patch, but didn't happen right away
(because mac-toggle-max-window changed the position without telling
Emacs).  It would also be encountered by anyone setting the frame
parameter 'left, even if they didn't use the fullscreen feature at all.

The right way to fix this is probably to translate between two
coordinate spaces.  Internally to Emacs, the origin should be in the
top-left corner of the minimum bounding rectangle of the union of the
displays.  The Mac-specific code will have to translate to and from the
Mac coordinates (with the origin in the top-left corner of the main
display).

Vebjorn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vebjorn Ljosa  
View profile  
 More options Jun 9 2008, 3:15 pm
From: Vebjorn Ljosa <vebj...@ljosa.com>
Date: Mon, 09 Jun 2008 15:15:28 -0400
Local: Mon, Jun 9 2008 3:15 pm
Subject: Re: [carbon-emacs:961] Re: New version of the fullscreen patch

David Reitter <david.reit...@gmail.com> writes:
> I've been having trouble with the old version of the patch when
> changing font settings.  If you change the font (e.g., with  M-x set-
> frame-font, or with the font panel), the frame resizes, and it is not
> full-screen any longer.

> I haven't installed the new patch yet.  It would be interesting to see
> if things work better with that.

David,

I had noticed that problem, too (and my patch did not address it).  I
tried right now to call fullscreen_hook from x_set_font (see patch
below), and it seems to work.  I think it's a little ugly, however.
It would be better to intercept the lower-level code that actually
changes the size (in pixels) of the Mac window, but I couldn't find it
in the time I have available today.  What do you think?

Vebjorn

--- ../../old/emacs.orig/src/frame.c    2008-06-02 16:25:50.000000000 -0400
+++ frame.c     2008-06-09 14:57:20.000000000 -0400
@@ -3142,6 +3142,9 @@
   else
     abort ();

+  if (fullscreen_hook != NULL)
+    fullscreen_hook (f);
+
   do_pending_window_change (0);

   /* Don't call `face-set-after-frame-default' when faces haven't been


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Reitter  
View profile  
 More options Jun 9 2008, 6:14 pm
From: David Reitter <david.reit...@gmail.com>
Date: Mon, 9 Jun 2008 23:14:21 +0100
Local: Mon, Jun 9 2008 6:14 pm
Subject: Re: [carbon-emacs:963] Re: New version of the fullscreen patch

On 9 Jun 2008, at 20:15, Vebjorn Ljosa wrote:

> I had noticed that problem, too (and my patch did not address it).  I
> tried right now to call fullscreen_hook from x_set_font (see patch
> below), and it seems to work.  I think it's a little ugly, however.
> It would be better to intercept the lower-level code that actually
> changes the size (in pixels) of the Mac window, but I couldn't find it
> in the time I have available today.  What do you think?

Yes, it should be called from wherever changes to the frame size are  
made, but I guess one can go with your solution for now.

This should be submitted to emacs-devel for review and inclusion in  
Emacs 23.

Do you have any thoughts about making this work well with the Cocoa  
port?

- D

  smime.p7s
2K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jun 10 2008, 3:42 pm
From: "Seiji Zenitani" <zenit...@gmail.com>
Date: Tue, 10 Jun 2008 15:42:37 -0400
Local: Tues, Jun 10 2008 3:42 pm
Subject: Re: [carbon-emacs:964] Re: New version of the fullscreen patch
2008/6/9 David Reitter <david.reit...@gmail.com>:
> On 9 Jun 2008, at 20:15, Vebjorn Ljosa wrote:

>> I had noticed that problem, too (and my patch did not address it).  I
>> tried right now to call fullscreen_hook from x_set_font (see patch
>> below), and it seems to work.  I think it's a little ugly, however.
>> It would be better to intercept the lower-level code that actually
>> changes the size (in pixels) of the Mac window, but I couldn't find it
>> in the time I have available today.  What do you think?

> Yes, it should be called from wherever changes to the frame size are made,
> but I guess one can go with your solution for now.

> This should be submitted to emacs-devel for review and inclusion in Emacs
> 23.

It should be included in 22.3.

Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jun 13 2008, 9:20 pm
From: Seiji Zenitani <zenit...@mac.com>
Date: Fri, 13 Jun 2008 21:20:43 -0400
Local: Fri, Jun 13 2008 9:20 pm
Subject: Re: [carbon-emacs:962] Re: New version of the fullscreen patch
Joel, Vebjorn, and David,

Even though there is the "negative coordinate" problem,
I believe that this code is very useful.
How about consulting to the emacs-devel list?

Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Reitter  
View profile  
 More options Jun 14 2008, 5:42 am
From: David Reitter <david.reit...@gmail.com>
Date: Sat, 14 Jun 2008 10:42:16 +0100
Local: Sat, Jun 14 2008 5:42 am
Subject: Re: [carbon-emacs:971] Re: New version of the fullscreen patch

On 14 Jun 2008, at 02:20, Seiji Zenitani wrote:

> Even though there is the "negative coordinate" problem,
> I believe that this code is very useful.
> How about consulting to the emacs-devel list?

Yes, I'd say propose for inclusion in Emacs 23 now.

- D

  smime.p7s
2K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Reitter  
View profile  
 More options Jul 3 2008, 1:29 pm
From: David Reitter <david.reit...@gmail.com>
Date: Thu, 3 Jul 2008 18:29:25 +0100
Local: Thurs, Jul 3 2008 1:29 pm
Subject: Re: [carbon-emacs:963] Re: New version of the fullscreen patch

Vebjorn,

I'm experiencing some difficulties with the fullscreen patch  
(2008-06-02) on the non-main display, which is arranged to be to the  
right and some 300 pixels above the main screen.
When I "fullscreen" a frame on the second screen, it is moved down to  
y=0.  It should be at y=-300.

Also, the width is not correct (it is a little too narrow) on the main  
screen.

Last, I can move the whole frame manually away when in full-screen  
mode.  This shouldn't be.

I didn't see any such problems with the previous patch.

- David

  smime.p7s
2K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Reitter  
View profile  
 More options Jul 7 2008, 11:33 am
From: David Reitter <david.reit...@gmail.com>
Date: Mon, 7 Jul 2008 16:33:59 +0100
Local: Mon, Jul 7 2008 11:33 am
Subject: Re: [carbon-emacs:963] Re: New version of the fullscreen patch

Hi Vebjorn + Seiji,

any news regarding the issues below?

Also, I notice that the frame is smaller than the full screen size,  
which is ugly (and not really "full screen").
This is when I use a Lucida Grande 14pt font rather than the default  
Monaco one.

- David

On 3 Jul 2008, at 18:29, David Reitter wrote:

  smime.p7s
2K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jul 7 2008, 5:51 pm
From: Seiji Zenitani <zenit...@mac.com>
Date: Mon, 07 Jul 2008 14:51:14 -0700
Local: Mon, Jul 7 2008 5:51 pm
Subject: Re: [carbon-emacs:1013] Re: New version of the fullscreen patch
Sounds like the same geometry problem, but I think it's beyond me.

Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vebjorn Ljosa  
View profile  
 More options Jul 10 2008, 9:01 am
From: Vebjorn Ljosa <vebj...@ljosa.com>
Date: Thu, 10 Jul 2008 09:01:09 -0400
Local: Thurs, Jul 10 2008 9:01 am
Subject: Re: [carbon-emacs:963] Re: New version of the fullscreen patch

David Reitter <david.reit...@gmail.com> writes:
> any news regarding the issues below?

David,

Sorry for not responding; I've been out of town.  I'll try to find time
to look into this Friday or next week.

Vebjorn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vebjorn Ljosa  
View profile  
 More options Jul 11 2008, 3:20 pm
From: Vebjorn Ljosa <vebj...@ljosa.com>
Date: Fri, 11 Jul 2008 15:20:59 -0400
Local: Fri, Jul 11 2008 3:20 pm
Subject: Re: [carbon-emacs:963] Re: New version of the fullscreen patch

> I'm experiencing some difficulties with the fullscreen patch
> (2008-06-02) on the non-main display, which is arranged to be to the
> right and some 300 pixels above the main screen.
> When I "fullscreen" a frame on the second screen, it is moved down to
> y=0.  It should be at y=-300.

This is the negative-coordinate problem that Seiji encountered.  It was
also present with the previous fullscreen patch (and also without it).
I describe in Message-ID <nq5bq2afnyl....@gm3b6-dd5.broad.mit.edu> (from
2008-06-09) how it can be fixed, but I don't have the time available
right now.

> Also, the width is not correct (it is a little too narrow) on the main
> screen.

I modified x_set_window_size to avoid this.  The attached patch is
relative to the current SVN version.  Can you please test it?

> Last, I can move the whole frame manually away when in full-screen
> mode.  This shouldn't be.

I don't understand this.  Do you mean that the window keeps its title
bar so you can drag it?  That should not happen in 'fullboth mode (but
should happen in 'fullwidth and 'fullheight mode).

Vebjorn

  fullscreen_x_set_window_size_patch_20080711.patch
< 1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Reitter  
View profile  
 More options Jul 11 2008, 4:39 pm
From: David Reitter <david.reit...@gmail.com>
Date: Fri, 11 Jul 2008 16:39:29 -0400
Local: Fri, Jul 11 2008 4:39 pm
Subject: Re: [carbon-emacs:963] Re: New version of the fullscreen patch

On 11 Jul 2008, at 15:20, Vebjorn Ljosa wrote:

> This is the negative-coordinate problem that Seiji encountered.  It  
> was
> also present with the previous fullscreen patch (and also without it).
> I describe in Message-ID <nq5bq2afnyl....@gm3b6-dd5.broad.mit.edu>  
> (from
> 2008-06-09) how it can be fixed, but I don't have the time available
> right now.

OK, if you could look into it at some point, that'd be good.

> I modified x_set_window_size to avoid this.  The attached patch is
> relative to the current SVN version.  Can you please test it?

Will get back to you.

>> Last, I can move the whole frame manually away when in full-screen
>> mode.  This shouldn't be.

> I don't understand this.  Do you mean that the window keeps its title
> bar so you can drag it?  That should not happen in 'fullboth mode (but
> should happen in 'fullwidth and 'fullheight mode).

No, not the title bar, but the tool bar stays (and it should).
The tool bar is draggable (at least in 10.5).  So that should be  
disabled somehow.

- D

  smime.p7s
2K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vebjorn Ljosa  
View profile  
 More options Jul 11 2008, 9:56 pm
From: Vebjorn Ljosa <vebj...@ljosa.com>
Date: Fri, 11 Jul 2008 21:56:03 -0400
Local: Fri, Jul 11 2008 9:56 pm
Subject: Re: [carbon-emacs:1018] Re: New version of the fullscreen patch

> I modified x_set_window_size to avoid this.  The attached patch is
> relative to the current SVN version.

I left in a few lines that should have been removed.  I have attached an
updated patch.

Vebjorn

  fullscreen_x_set_window_size_patch_20080711.patch
1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jul 11 2008, 10:14 pm
From: Seiji Zenitani <zenit...@mac.com>
Date: Fri, 11 Jul 2008 22:14:05 -0400
Local: Fri, Jul 11 2008 10:14 pm
Subject: Re: [carbon-emacs:1021] Re: New version of the fullscreen patch
On 2008/07/11, at 21:56, Vebjorn Ljosa wrote:

>> I modified x_set_window_size to avoid this.  The attached patch is
>> relative to the current SVN version.

> I left in a few lines that should have been removed.  I have  
> attached an
> updated patch.

I updated the SVN code.

Thanks,
Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Seiji Zenitani  
View profile  
 More options Jul 11 2008, 10:39 pm
From: Seiji Zenitani <zenit...@mac.com>
Date: Fri, 11 Jul 2008 22:39:09 -0400
Local: Fri, Jul 11 2008 10:39 pm
Subject: Re: [carbon-emacs:1022] Re: New version of the fullscreen patch
One more thing:
We have to deal with the tool-bar mode.
The GTK port seems to be OK.

   (tool-bar-mode -1)

Seiji


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google