Creating browsers on two monitors from a CefClient process

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Creating browsers on two monitors from a CefClient process

Postby Lingappa » Fri Mar 09, 2018 8:26 am

Hi,

I have two monitors( :0.0 and :0.1) connected to one machine. whenever I start a cefclient, it creates browser on screen :0.0, If I change DISPLAY to 0.1 it succesfully created in secondary monitor.

If I want to create two browsers, one on primary and another on secondary screen from the single CefClient process, How can achieve it it?
Lingappa
Newbie
 
Posts: 8
Joined: Fri Feb 23, 2018 8:20 am

Re: Creating browsers on two monitors from a CefClient proce

Postby magreenblatt » Fri Mar 09, 2018 8:36 am

Create each browser with the bounds of the display you want it on.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Creating browsers on two monitors from a CefClient proce

Postby Lingappa » Fri Mar 09, 2018 9:28 am

bounds of the two displays are same (0,0,1360,788) for me, only the DISPLAY(0.0 or 0.1) changes for the monitors.

How can I create browser in secondary screen without exporting DISPLAY to 0.1?
Last edited by Lingappa on Fri Mar 09, 2018 9:37 am, edited 1 time in total.
Lingappa
Newbie
 
Posts: 8
Joined: Fri Feb 23, 2018 8:20 am

Re: Creating browsers on two monitors from a CefClient proce

Postby magreenblatt » Fri Mar 09, 2018 9:37 am

You will likely need to do it using correct OS-specific functions. I would suggest searching the documentation for the OS that you're using.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 14 guests