Ticket UUID: | 4face822b0b3d0cb8383c5cf46ff2099715846fa | |||
Title: | wm attributes -fullscreen w/dual monitor opens to fullscreen in the wrong display | |||
Type: | Bug | Version: | 8.6.3 | |
Submitter: | anonymous | Created on: | 2015-01-10 23:58:35 | |
Subsystem: | 68. Win Window Operations | Assigned To: | nobody | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Open | Last Modified: | 2016-08-15 10:21:09 | |
Resolution: | None | Closed By: | nobody | |
Closed on: | ||||
Description: |
With a dual monitor setup, a window in the second display, changed to fullscreen mode will go to fullscreen in the first display rather than the second. I tested this on Windows Vista and VirtualBox/Windows 7. #!/usr/bin/tclsh package require Tk proc toggleFullscreen { } { set fs [wm attribute .win2 -fullscreen] wm attribute .win2 -fullscreen [expr {1-$fs}] } toplevel .win2 bind .win2 <Double-1> toggleFullscreen ttk::label .lab1 -text {Window 1} pack .lab1 -in . ttk::label .win2.lab2 -text {Window 2} pack .win2.lab2 -in .win2 | |||
User Comments: |
fvogel added on 2016-05-31 18:54:00:
(text/x-fossil-wiki)
Confirmed it works OK on Debian 8 with two monitors. Double-clicking inside window 2 toggles fullscreen on the monitor where the window is displayed. Looks like the WM understands there is a single screen displayed on two monitors. (this remark in link with the discussion around [c95d4691ff]). anonymous (claiming to be [email protected]) added on 2016-04-23 01:01:24: This is not a problem on Linux. The windows changes to fullscreen on the correct monitor. I am unable to test on Mac OS X -- I only have a single monitor there. Works on FreeBSD (mate desktop)-- tested just now. fvogel added on 2016-04-22 21:49:43: (text/x-fossil-wiki) Looks like it's [http://core.tcl.tk/tk/artifact/0f2e65aba5e50e1f?ln=6502,6502|hardcoded for MacOSX as well] but I'm not sure. Again: Could someone please confirm whether this problem exists on Mac and on Linux, or not? fvogel added on 2016-04-18 20:57:30: (text/x-fossil-wiki) This appears to be [http://core.tcl.tk/tk/artifact/fca926d889406410?ln=2110,2111|hardcoded in Tk], at least for Windows. Could someone please confirm whether this problem exists on Mac and on Linux, or not? oehhar added on 2015-02-25 16:45:39: Confirmed on Win 8.1 with a Laptop with an external Monitor. Fullscreen always on the Primary screen, even if normal window on the extended screen. |