feenkcom / gtoolkit

Glamorous Toolkit is the Moldable Development environment. It empowers you to make systems explainable through experiences tailored for each problem.
https://gtoolkit.com
MIT License
1.08k stars 46 forks source link

Problem with native windows #185

Closed bjorn3 closed 5 years ago

bjorn3 commented 5 years ago

When I clicked on GToolkit > Use Native Windows, I got an AssertionFailure. Dragging the new window a bit causes glitches. When bringing my browser in front and bringing the native window back it stays blank until dragging it again.

image

image

girba commented 5 years ago

Thanks. Native Windows Support is very much a work in progress, and it still has glitches which is the reason why we do not enable it by default.

The issue that you point out is due to the fact that you have existing Gt/Bloc windows open. We will address it in a follow up build.

Until then, please try this script instead (in a classic Playground):

World closeAllWindowsDiscardingChanges.
BlUniverse reset.
Bloc preferableHostClass: BlOSWindowHost.

Does this work for you?

bjorn3 commented 5 years ago
  1. Copy paste doesn't work
  2. I initially misspelled World and clicked World in a popup image after that playground got stuck image
  3. After reopening pharo, executing that script only closes the playground, but doesn't do anything else.

Edit: added screenshot of the popup

girba commented 5 years ago

The script is not meant to do anything else. However, after running the script, opening a new GT window should happen in a native window.

girba commented 5 years ago
  1. Copy paste doesn't work How did I try it? Ctrl+c?

What Linux variant are you on?

girba commented 5 years ago

2. I initially misspelled World and clicked World in a popup I cannot reproduce this one. Can you try again and see if you can reproduce it?

bjorn3 commented 5 years ago

The script doesn't result in new windows opening in native windows. Copy paste seems to work in the classic playground, but not in the GToolkit I accidentially opened before. I am running kde on debian stretch.

girba commented 5 years ago

Thanks for trying! Can you try in a fresh image?

Just to make sure, this is the script I am referring to:

World closeAllWindowsDiscardingChanges.
BlUniverse reset.
Bloc preferableHostClass: BlOSWindowHost.
bjorn3 commented 5 years ago

I cannot reproduce this one. Can you try again and see if you can reproduce it?

I only reproduced it once by chance.

bjorn3 commented 5 years ago

Just to make sure, this is the script I am referring to:

Yes

bjorn3 commented 5 years ago

The script doesn't result in new windows opening in native windows.

Now it does. It seems to only work for GToolkit tools, not those from pharo.

bjorn3 commented 5 years ago

Thanks for trying! Can you try in a fresh image?

I never saved it, but restarted pharo every time.

bjorn3 commented 5 years ago

Now it does. It seems to only work for GToolkit tools, not those from pharo.

The playground I got in a native window has the same glitches :(

bjorn3 commented 5 years ago

As an aside, every time I change focus from the native window to my browser and close the native window, my browser flickers for an instant.

girba commented 5 years ago

Now it does. It seems to only work for GToolkit tools, not those from pharo.

Of course. GToolkit is based on a completely separate graphical stack than Pharo. To bootstrap, we used the Pharo Morphic as a host, but other than that it is distinct. So, the native window support only affects GT.

girba commented 5 years ago

The playground I got in a native window has the same glitches :(

What glitches?

bjorn3 commented 5 years ago

What glitches?

Quoting myself:

When bringing my browser in front and bringing the native window back it stays blank until dragging it again.

Except this time dragging didn't even help.

girba commented 5 years ago

When bringing my browser in front and bringing the native window back it stays blank until dragging it again. Except this time dragging didn't even help.

Thanks for trying and for the patience.

By blank, do you mean black? This is a known problem (even though we do not yet know how to fix).

girba commented 5 years ago

Also, can you confirm that Ctrl+v does not paste in the new Playground (either in a native window or in the default morphic host)?

bjorn3 commented 5 years ago

By blank, do you mean black? This is a known problem (even though we do not yet know how to fix).

Either the old content of the screen at the moment the window came back in front or black.

bjorn3 commented 5 years ago

Ctrl+v does work in a native window, but not in the default morphic host.

girba commented 5 years ago

Either the old content of the screen at the moment the window came back in front or black.

And does resizing the window help?

girba commented 5 years ago

Ctrl+v does work in a native window, but not in the default morphic host.

Thanks!

bjorn3 commented 5 years ago

And does resizing the window help?

Yes after some flickering. After resizing for a bit longer I got:

image

image

image

bjorn3 commented 5 years ago

I kept the above window open, so if you need more info, tell me what commands to execute.

Edit: had to close it.

girba commented 5 years ago

Thanks. I never saw this problem.

Would it be possible for you to play with GT in the regular Morphic window to see if you can use it normally? That scenario should work fine.

bjorn3 commented 5 years ago

I couldn't reproduce using a regular Morphic window, but could easily using a native window.

girba commented 5 years ago

Can you still reproduce the issue with the latest GT?

girba commented 5 years ago

We are now working on a new backend for native windows: #236

I will close this issue. Please reevaluate after we release the new solution.