Skip Menu |
 

This queue is for tickets about the Tcl-pTk CPAN distribution.

Report information
The Basics
Id: 125939
Status: resolved
Priority: 0/
Queue: Tcl-pTk

People
Owner: Nobody in particular
Requestors: welleozean [...] googlemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [macOS] problem if main window is maximized (full screen)
Date: Fri, 27 Jul 2018 14:37:47 +0200
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle Ozean <welleozean [...] googlemail.com>
Download (untitled) / with headers
text/plain 773b
Tcl::pTk-0.92 , Tcl/Tk macOS default, HighSierra I have a quite complex GUI, which works just fine. However, when I maximize the main window using the Mac green button (full screen) all icons become interactive. As far I can see, the problem is related to the "position" of the cursor on the screen: if I move the cursor on the lowest part of the icon, or even beneath the icon, it is possible to click on it. You can replicate the problem using the *widgetTclpTk* . Just maximize (full screen) the welcome widget with the list of all demos. You will see that there is a vertical gap between the position of the cursor and the widget selected*.* Updating Tcl/Tk to 8.6 does not seem to affect the problem. I am not aware of the problem is related to Tcl::pTk or to Tcl.
Hi Welle,


On Fri Jul 27 07:38:01 2018, welleozean@googlemail.com wrote:
Show quoted text
> Tcl::pTk-0.92 , Tcl/Tk macOS default, HighSierra
>
> I have a quite complex GUI, which works just fine. However, when I maximize
> the main window using the Mac green button (full screen) all icons become
> interactive. As far I can see, the problem is related to the "position" of
> the cursor on the screen: if I move the cursor on the lowest part of the
> icon, or even beneath the icon, it is possible to click on it.
>
> You can replicate the problem using the *widgetTclpTk* . Just maximize
> (full screen) the welcome widget with the list of all demos. You will see
> that there is a vertical gap between the position of the cursor and the
> widget selected*.*

Unfortunately I have not figured out how to reproduce the issue. I have made a screen recording using QuickTime Player, could you please see if I have done the steps correctly? https://vimeo.com/282095482

And if possible, would you be able to share a screen recording of what happens on your machine?

Show quoted text
> Updating Tcl/Tk to 8.6 does not seem to affect the problem. I am not aware
> of the problem is related to Tcl::pTk or to Tcl.

This could be a Tcl/Tk issue. I would suggest seeing if the problem also happens with a pure Tcl/Tk program, for example the Tcl/Tk widget demo (I'm not sure where this is for macOS' included Tcl/Tk 8.5).
Subject: Re: [rt.cpan.org #125939] [macOS] problem if main window is maximized (full screen)
Date: Mon, 30 Jul 2018 19:50:13 +0100
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle Ozean <welleozean [...] googlemail.com>
Download (untitled) / with headers
text/plain 1.9k
Thank you for having a look at it. Here you can find a short video: https://youtu.be/2f-x_VT7T_E The only thing I noticed is that when I click on the maximize button, the borders of my screen get black. So I do not know if this is something more related to the macOS. However, the same problem was encountered by several users of my tool. Let me know what you think about it. 2018-07-28 13:04 GMT+01:00 Christopher Alexander Chavez via RT < bug-Tcl-pTk@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=125939 > > > Hi Welle, > > > On Fri Jul 27 07:38:01 2018, welleozean@googlemail.com wrote:
> > Tcl::pTk-0.92 , Tcl/Tk macOS default, HighSierra > > > > I have a quite complex GUI, which works just fine. However, when I
> maximize
> > the main window using the Mac green button (full screen) all icons become > > interactive. As far I can see, the problem is related to the "position"
> of
> > the cursor on the screen: if I move the cursor on the lowest part of the > > icon, or even beneath the icon, it is possible to click on it. > > > > You can replicate the problem using the *widgetTclpTk* . Just maximize > > (full screen) the welcome widget with the list of all demos. You will see > > that there is a vertical gap between the position of the cursor and the > > widget selected*.*
> > Unfortunately I have not figured out how to reproduce the issue. I have > made a > screen recording using QuickTime Player, could you please see if I have > done > the steps correctly? https://vimeo.com/282095482 > And if possible, would you be able to share a screen recording of what > happens > on your machine? >
> > Updating Tcl/Tk to 8.6 does not seem to affect the problem. I am not
> aware
> > of the problem is related to Tcl::pTk or to Tcl.
> > This could be a Tcl/Tk issue. I would suggest seeing if the problem also > happens with a pure Tcl/Tk program, for example the Tcl/Tk widget demo > (I'm not > sure where this is for macOS' included Tcl/Tk 8.5). > >
On Mon Jul 30 13:50:32 2018, welleozean@googlemail.com wrote:
Show quoted text
> Thank you for having a look at it. Here you can find a short video:
>
> https://youtu.be/2f-x_VT7T_E
>
> The only thing I noticed is that when I click on the maximize button, the
> borders of my screen get black. So I do not know if this is something more
> related to the macOS. However, the same problem was encountered by several
> users of my tool.


Thanks for sharing the recording, that's very interesting.

What's happening on your machine is that the window is actually entering the native full screen mode, whereas on my machine it only maximizes the window without actually entering full screen (even though the icon was the full screen arrows rather than the maximize (+ plus) icon).

Just now I finally tried the Tcl/Tk widget demo with macOS' included Tk 8.5.9, and was able to reproduce the issue right away.

I then searched Tcl/Tk commit history for "macos fullscreen", and found this commit that's in 8.6.8, which prevents the use of native fullscreen on macOS: https://github.com/tcltk/tk/commit/0d7ce492fb519aca89236dab492814f44f413b24#diff-31f4447b752969ce19a7418b031d0607R240

So unless you were also using Tk 8.6.8, I'm convinced this is a Tcl/Tk issue that's fixed in only its very latest release. For Tcl/Tk 8.6, which patch version did you try/how did you install it (source/distribution)? I know ActiveTcl still has not released Tcl/Tk 8.6.8, but I haven't found an explanation why.

I understand it might not be reasonable to require Tcl::pTk users to use/upgrade to Tk 8.6.8 to avoid this issue, but at the same time I'm not sure if it's reasonable (or even possible) to implement a workaround in Tcl::pTk to prevent this.

As a workaround holding option when clicking the green button should maximize instead of entering fullscreen.
There is an upstream Tcl/Tk ticket for this issue: https://core.tcl.tk/tk/tktview/d83153578e985b5d9f3b 

Apparently no one ever updated it with mention of a commit addressing it in 8.6.8, so I'll do that in a moment.
Subject: Re: [rt.cpan.org #125939] [macOS] problem if main window is maximized (full screen)
Date: Tue, 31 Jul 2018 10:23:00 +0100
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle Ozean <welleozean [...] googlemail.com>
Download (untitled) / with headers
text/plain 1.4k
Thank you AGAIN for your help. I tried it with both the standard Tcl that comes with macOS as well as the latest ActiveTcl. Thank you for pointing me to the discussions online. It would be great to have a programmatically way to have the maximisation avoided if the right Tcl is not installed. I'll follow the developments. ActiveTcl is the only easy to use Tcl upgrade I can ask my user to install on their machine. I tried to have my tool working with the standard macOS Tcl, so to avoid asking users to install extra software, but in the meantime I have realized that there are several bugs that make the tool crash (For example connected to internationalization, i.e. Utf-8). Fortunately tcl.pm automatically uses the highest version it finds on the machine of the final users (even if I compiled it with the standard Tcl). This makes things easy and flexible. In the future, I will give try to compile it against a static version of Tcl and Tk that I can ship with my tool. But this will require a lot of experimentation and learning from my side, so I'll let this part as a to do list for the future. 2018-07-30 20:54 GMT+01:00 Christopher Alexander Chavez via RT < bug-Tcl-pTk@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=125939 > > > There is an upstream Tcl/Tk ticket for this issue: > https://core.tcl.tk/tk/tktview/d83153578e985b5d9f3b > > Apparently no one ever updated it with mention of a commit addressing it in > 8.6.8, so I'll do that in a moment. > >
Subject: Re: [rt.cpan.org #125939] [macOS] problem if main window is maximized (full screen)
Date: Mon, 13 Aug 2018 13:38:48 +0200
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle Ozean <welleozean [...] googlemail.com>
Download (untitled) / with headers
text/plain 1.7k
Hi Christopher, I would like to inform you that ActiveState has answered my question about ActiveTcl 8.6.8 in Q3/Q4 this year. Best, 2018-07-31 11:23 GMT+02:00 welle Ozean <welleozean@googlemail.com>: Show quoted text
> Thank you AGAIN for your help. > > I tried it with both the standard Tcl that comes with macOS as well as the > latest ActiveTcl. Thank you for pointing me to the discussions online. It > would be great to have a programmatically way to have the maximisation > avoided if the right Tcl is not installed. I'll follow the developments. > > ActiveTcl is the only easy to use Tcl upgrade I can ask my user to install > on their machine. I tried to have my tool working with the standard macOS > Tcl, so to avoid asking users to install extra software, but in the > meantime I have realized that there are several bugs that make the tool > crash (For example connected to internationalization, i.e. Utf-8). > Fortunately tcl.pm automatically uses the highest version it finds on the > machine of the final users (even if I compiled it with the standard Tcl). > This makes things easy and flexible. In the future, I will give try to > compile it against a static version of Tcl and Tk that I can ship with my > tool. But this will require a lot of experimentation and learning from my > side, so I'll let this part as a to do list for the future. > > > 2018-07-30 20:54 GMT+01:00 Christopher Alexander Chavez via RT < > bug-Tcl-pTk@rt.cpan.org>: >
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=125939 > >> >> There is an upstream Tcl/Tk ticket for this issue: >> https://core.tcl.tk/tk/tktview/d83153578e985b5d9f3b >> >> Apparently no one ever updated it with mention of a commit addressing it >> in >> 8.6.8, so I'll do that in a moment. >> >>
>
Subject: Re: [rt.cpan.org #125939] [macOS] problem if main window is maximized (full screen)
Date: Mon, 13 Aug 2018 13:38:48 +0200
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle Ozean <welleozean [...] googlemail.com>
Download (untitled) / with headers
text/plain 1.7k
Hi Christopher, I would like to inform you that ActiveState has answered my question about ActiveTcl 8.6.8 in Q3/Q4 this year. Best, 2018-07-31 11:23 GMT+02:00 welle Ozean <welleozean@googlemail.com>: Show quoted text
> Thank you AGAIN for your help. > > I tried it with both the standard Tcl that comes with macOS as well as the > latest ActiveTcl. Thank you for pointing me to the discussions online. It > would be great to have a programmatically way to have the maximisation > avoided if the right Tcl is not installed. I'll follow the developments. > > ActiveTcl is the only easy to use Tcl upgrade I can ask my user to install > on their machine. I tried to have my tool working with the standard macOS > Tcl, so to avoid asking users to install extra software, but in the > meantime I have realized that there are several bugs that make the tool > crash (For example connected to internationalization, i.e. Utf-8). > Fortunately tcl.pm automatically uses the highest version it finds on the > machine of the final users (even if I compiled it with the standard Tcl). > This makes things easy and flexible. In the future, I will give try to > compile it against a static version of Tcl and Tk that I can ship with my > tool. But this will require a lot of experimentation and learning from my > side, so I'll let this part as a to do list for the future. > > > 2018-07-30 20:54 GMT+01:00 Christopher Alexander Chavez via RT < > bug-Tcl-pTk@rt.cpan.org>: >
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=125939 > >> >> There is an upstream Tcl/Tk ticket for this issue: >> https://core.tcl.tk/tk/tktview/d83153578e985b5d9f3b >> >> Apparently no one ever updated it with mention of a commit addressing it >> in >> 8.6.8, so I'll do that in a moment. >> >>
>
There's a new fullscreen implementation in the Tcl/Tk repository (mentioned in the Tcl/Tk ticket); I have yet to try it though. There's also the issue of having to compile separately for allowing fullscreen in macOS 10.13 or later, and without fullscreen for macOS 10.12 or earlier.
There have been more improvements since Tk 8.6.9.1 to fully support native fullscreen on macOS; I have tested these using the upstream core-8-6-branch, and presumably these will appear in 8.6.10. Unfortunately, I am still not sure there's anything I can or should do about working around this issue for the macOS' included Tk 8.5.9.
Subject: Re: [rt.cpan.org #125939] [macOS] problem if main window is maximized (full screen)
Date: Sun, 12 May 2019 10:37:56 +0200
To: bug-Tcl-pTk [...] rt.cpan.org
From: welle ozean <welleozean [...] googlemail.com>
Download (untitled) / with headers
text/plain 969b
Thank you for your feedback. As I followed the new developments of Tcl/Tk in the last months, I decided to switched to the latest Tcl/Tk which indeed supports Fullscreen. Being quite easy to use any installation (even portable Frameworks) of Tcl/Tk with Tcl::pTk, I do not think it makes any sense to work with old version of Tcl/Tk (and do fixes in Tcl::pTk). The ticket should be closed as the problem was Tcl/Tk related and not Tcl::pTk related. Am So., 12. Mai 2019 um 05:58 Uhr schrieb Christopher Alexander Chavez via RT <bug-Tcl-pTk@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=125939 > > > There have been more improvements since Tk 8.6.9.1 to fully support native > fullscreen on macOS; I have tested these using the upstream > core-8-6-branch, > and presumably these will appear in 8.6.10. Unfortunately, I am still not > sure > there's anything I can or should do about working around this issue for the > macOS' included Tk 8.5.9. > >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.