all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Strange code in xterm.c
@ 2010-12-20 10:45 Eli Zaretskii
  2010-12-20 19:58 ` Jan Djärv
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2010-12-20 10:45 UTC (permalink / raw)
  To: emacs-devel

This a large part of the body of x_check_fullscreen:

      int width = FRAME_COLS (f), height = FRAME_LINES (f);
      struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);

      switch (f->want_fullscreen)
        {
          /* No difference between these two when there is no WM */
        case FULLSCREEN_BOTH:
        case FULLSCREEN_MAXIMIZED:
          width = x_display_pixel_width (dpyinfo);
          height = x_display_pixel_height (dpyinfo);
          break;
        case FULLSCREEN_WIDTH:
          width = x_display_pixel_width (dpyinfo);
          break;
        case FULLSCREEN_HEIGHT:
          height = x_display_pixel_height (dpyinfo);
        }

      if (FRAME_COLS (f) != width || FRAME_LINES (f) != height)
        {
          change_frame_size (f, height, width, 0, 1, 0);
          SET_FRAME_GARBAGED (f);
          cancel_mouse_face (f);
        }

Am I missing something, or does it mix up display dimensions in pixels
and in character units?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange code in xterm.c
  2010-12-20 10:45 Strange code in xterm.c Eli Zaretskii
@ 2010-12-20 19:58 ` Jan Djärv
  2010-12-21  3:49   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Djärv @ 2010-12-20 19:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

It seems I cut away too much when I removed some of the fullscreen stuff. 
This code looks non-functional, it also doesn't resize the frame.  As this 
code only gets run when there is no window manager present, nobody noticed.
I'll clean it up in a day or three.

	Jan D.


Eli Zaretskii skrev 2010-12-20 11.45:
> This a large part of the body of x_check_fullscreen:
>
>        int width = FRAME_COLS (f), height = FRAME_LINES (f);
>        struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
>
>        switch (f->want_fullscreen)
>          {
>            /* No difference between these two when there is no WM */
>          case FULLSCREEN_BOTH:
>          case FULLSCREEN_MAXIMIZED:
>            width = x_display_pixel_width (dpyinfo);
>            height = x_display_pixel_height (dpyinfo);
>            break;
>          case FULLSCREEN_WIDTH:
>            width = x_display_pixel_width (dpyinfo);
>            break;
>          case FULLSCREEN_HEIGHT:
>            height = x_display_pixel_height (dpyinfo);
>          }
>
>        if (FRAME_COLS (f) != width || FRAME_LINES (f) != height)
>          {
>            change_frame_size (f, height, width, 0, 1, 0);
>            SET_FRAME_GARBAGED (f);
>            cancel_mouse_face (f);
>          }
>
> Am I missing something, or does it mix up display dimensions in pixels
> and in character units?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange code in xterm.c
  2010-12-20 19:58 ` Jan Djärv
@ 2010-12-21  3:49   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2010-12-21  3:49 UTC (permalink / raw)
  To: Jan Djärv; +Cc: emacs-devel

> Date: Mon, 20 Dec 2010 20:58:28 +0100
> From: Jan Djärv <jan.h.d@swipnet.se>
> Cc: emacs-devel@gnu.org
> 
> It seems I cut away too much when I removed some of the fullscreen stuff. 
> This code looks non-functional, it also doesn't resize the frame.  As this 
> code only gets run when there is no window manager present, nobody noticed.
> I'll clean it up in a day or three.

Thanks.  I suggest to fix this on the emacs-23 branch.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-21  3:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20 10:45 Strange code in xterm.c Eli Zaretskii
2010-12-20 19:58 ` Jan Djärv
2010-12-21  3:49   ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.