TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
688 stars 127 forks source link

Window placement using side by side with multiple screens #294

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1 Open a latex document in TeXworks
1a Ensure that the generated pdf is shown
2 Move the windows to the external screen
3 Click Window->Side by side

What is the expected output? 
The two panels were place side sy side, each having the same width.

What do you see instead?
The tex source code panel now has a width of approx 250 px
The pdf preview panel fills the entire screen, but is place below the 
source code editor.

What version of the product are you using? On what operating system?
* Windows XP SP3
* TeXworks 0.3 (r.567)
* MikTeX 2.8
* Laptop with external monitor connected, running a dual screen setup where 
the desktop is extended onto the external monitor. Both displays uses a 
resolution of 1680 x 1050.

Please provide any additional information below.
The "side by side" function works properly when the program window is 
placed on the internal screen.

Original issue reported on code.google.com by henrikmidtiby@gmail.com on 24 Feb 2010 at 11:47

GoogleCodeExporter commented 9 years ago
Yeah, there is currently no (real) multi-screen support. A few questions for
clarification:
1) Did you move one window to the external monitor, or both?
2) Did you try hitting "Side by Side" multiple times?

The attached patch should improve the handling of window placement on multiple
monitors slightly. If two windows are placed on different monitors, they should 
be
zoomed to use the whole of their respective displays. Note, however, that I 
couldn't
test it (in particular the difference between multiple desktops and a single, 
big
virtual desktop).

Original comment by st.loeffler on 24 Feb 2010 at 5:22

Attachments:

GoogleCodeExporter commented 9 years ago
> A few questions for clarification:
> 1) Did you move one window to the external monitor, or both?
I tried the following combinations
* Code on primary monitor and viewer on primary monitor:
Each window fills half of the primary monitor.

* Code on primary monitor and viewer on external monitor:
After clicking on "Side by side", does the code window fill half of the primary 
monitor and the viewer fills the entire external monitor.

* Code on external monitor and viewer on primary monitor:
After clicking on "Side by side", the code window is resized to its minimum 
width on 
the external monitor and the viewer fills half of the primary monitor.

* Code on external monitor and viewer on external monitor:
The reported case in the original posting.
After clicking on "Side by side", the code window is resized to its minimum 
width on 
the external monitor and the viewer the entire external monitor.

> 2) Did you try hitting "Side by Side" multiple times?
Yes, and the window placement and sizes does not change in that case.

Additional info
The menu entry "Tile" seems to work as expected in the four cases.

> The attached patch should improve the handling of window placement 
> on multiple
I haven't tested the patch yet, I'll probably have time for that during the 
weekend.
monitors slightly

Original comment by henrikmidtiby@gmail.com on 25 Feb 2010 at 7:53

GoogleCodeExporter commented 9 years ago
I tested the patch briefly today on Linux (Ubuntu 9.10) and it worked well. 
There was
only a minor issue with Linux believing that windows that occupy the whole 
screen are
maximized (so maybe a Show(Normalized) should be added somewhere).

Original comment by st.loeffler on 15 Mar 2010 at 6:52

GoogleCodeExporter commented 9 years ago
Committed in rev 581.

Original comment by jfkth...@gmail.com on 1 Apr 2010 at 11:08