-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component is jumping to a new window only in Linux #38
Comments
UPDATE: This only occurs when using GTK2, if i use Lazarus for QT the application runs fine. |
I mostly test with GTK2 and it works ok for me (KDE 4).
There is one big difference between CEF on Windows and CEF on Linux: Could you please set a breakpoint in
I tested the latest fpCEF version with Lazarus 1.6, so there should be no problem. |
I added the breakpoint the app runs with the separated window but is very strange breakpoint indicates 0 passes. I tried to re-execute the app a few times, what i am doing wrong? Maybe is because i installed fpcef on lazarus? Note i tried to put a breakpoint into a application button, and it is counting the hits. |
Ok, I can reproduce this. A new window is created, if I remove the url label in the LCLSimple example. GTK issues this warning
I will need to look into this issue more closely, as I don't really have an idea right now. EDIT: Actually the function gets called, but the debugger somehow fails to stop at the breakpoint. |
Thank you very much friend. If you create a new project the issue will happen too! |
The following diff fixes the issue for me:
I will commit this fix once I'm sure there are no downsides. But I don't have the time for testing right now. |
I think its really fixed and can be closed thank you so very much!, friend i know it is off-topic but you can help with some example of how can i implement the printer ? I will understand if you can't... Sorry to bother you like this. I am trying to port a webrowser that is running in Windows to Linux. Please visit lazarus forum when you have some time or can i use a issue for that? Can i try the printtopdf function in linux, or need to be implemented too? I think i can do some adaption to make this to print to the real printer.. haha! |
This belongs to issue #39.
Did you open a thread? Please send me a link if you do / did so. Please follow issue #40 to see the progress. It will take some time though, as I'm very busy right now.
Sorry, I don't know. You could try this code, but it could be, that one needs to implement the print handler on Linux in any case. |
I am having a issue with fpCEF3.
In windows i can create a project fine and add the component Chromium pointed to https://www.google.com.br, but in Linux (Debian 8), when i try to do that, the component detaches from the main window, the loading of google occurs fine but in a another strange window.
I am going crazy because there is no errors at all.
What i do:
1- Create a new project from zero.
2- Copy resources and release to the root of the project.
3- Add a Chromium component to the main form.
4- Set default url to https://www.google.com.br in the component properties.
What happen if a compile and run it on:
1- Windows: It opens only a window with chromium component loading google in the main form.
2- Linux - It opens 2 windows, the main form , and a new additional window, loading google fine but in a new detached window.
And the strangest thing is that the LCLsimple example, works in the same window **but it broken openning a new window, when i remove the simpletext component from the example app. (yes! the 'Url:' text)
Maybe is something related to the lazarus version?
Lazarus 1.6 FPCEF for CEF 2743 Debian 8 64 bits operating system, graphical environment: Mate
The text was updated successfully, but these errors were encountered: