window.SetBounds on Linux does not expand to second monitor

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

window.SetBounds on Linux does not expand to second monitor

Postby RangelReale » Wed Sep 04, 2019 2:39 pm

Using branch 3729 on Ubuntu Linux 16.04.

if I call window->SetBounds with a value that would place a part of the window on the second monitor, the width is clipped to fit on the first monitor.

For example, given a 2 monitor setup, like 2 1920x1080 screens, if I call window->setBounds(CefRect(1800, 0, 1000, 800)), my window ends up with a width of 120 instead of 1000, staying only on the first monitor.
On Windows this same code works, the window stays with the 1000 width.

Is this possible on Linux? I searched a lot if this was something about X11, but found nothing useful.
RangelReale
Techie
 
Posts: 21
Joined: Mon Mar 25, 2019 12:23 pm

Re: window.SetBounds on Linux does not expand to second moni

Postby Czarek » Thu Sep 05, 2019 9:23 am

Here is the source code for SetBounds: https://github.com/chromiumembedded/cef ... 11.cc#L240
Last edited by Czarek on Thu Sep 05, 2019 9:29 am, edited 1 time in total.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Re: window.SetBounds on Linux does not expand to second moni

Postby RangelReale » Thu Sep 05, 2019 11:44 am

Czarek wrote:Here is the source code for SetBounds: https://github.com/chromiumembedded/cef ... 11.cc#L240


Is there a way to access the xdisplay_ and xwindow_ members from the generic code? Or this must be done on the CEF source code?

EDIT: I found this thread that does this, will try it. (https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=12203&p=23077&hilit=xdisplay_#p23077)
RangelReale
Techie
 
Posts: 21
Joined: Mon Mar 25, 2019 12:23 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 45 guests