multiple-monitors

Fullscreen mode on monitor A in dual-monitor setup breaks when moving windows from monitor B onto it

徘徊边缘 提交于 2019-12-06 23:08:40
问题 I am building a Win7/8/10 x64 Direct3D11 desktop application that allows the user to switch between windowed and fullscreen mode (proper dedicated fullscreen mode, not just a maximized window*). On a dual-monitor setup I am encountering some issues. The switch itself is performed manually using IDXGISwapChain::SetFullscreenState and works as intended: The monitor that houses the lion's share of the window area (let's call it monitor A) goes into dedicated fullscreen mode while leaving the

Turn off double-click undock in VS2010

匆匆过客 提交于 2019-12-06 17:02:39
问题 I keep accidentally double-clicking my tabs in VS2010 and undocking them. Is it possible to turn off this behavior? Note: I'm using Document Well 2010 Plus from the Productivity Power Tools, in case that makes a difference. 回答1: found it on the Document Tab Well advanced options, 回答2: I don't know how to turn off it, but you can use use {CTRL}+ Double click to dock them again 回答3: As I know Power Tools don't change this behaviour. But you should probably add some kind of locking feature on

Tkinter on Ubuntu 14.02 Reports width as sum of both monitors

送分小仙女□ 提交于 2019-12-06 15:45:48
I have two monitors on a new Ubuntu 14.02 machine. One monitor is 1024X768 VGA. The second monitor is 1920X1080 HDMI No matter what I do root.winfo_screenwidth() reports 2944 (The sum of both monitors) (If I stack the monitors then winfo_screenheight reports the sum of heights) Of course I did most of the development of my software on Windows where it worked fine (with two monitors) With only one monitor plugged in to the Ubuntu machine, it works fine. This all fails very badly with: import Tkinter root=Tkinter.Tk() root.attributes('-fullscreen',True) root.update() print root.winfo_screenwidth

How a Multi Monitor application can detect a missing monitor

孤街浪徒 提交于 2019-12-06 12:30:01
问题 An application with docking capabilities can save the desktop with the positions of all windows including the ones on separate monitors. If the saved desktop is reloaded but one or more of the monitors is not connected, the application should detect this. I have the following: ... Windows windows = Window.GetWindow(pane); if (window != null) { PaneTookWindow = toolWindow = window.Content as PaneToolWindow; if (toolWindow != null) { if (!AreaInScreenBounds(new Rect(toolWindow.Left, toolWindow

Change 2nd Monitor Display Setting to Duplicate

柔情痞子 提交于 2019-12-06 09:40:21
I am attempting to programatically make the 2nd Monitor have a duplicate display. My function below should change the 2nd monitors display to 'duplicate display', ie, make the 2nd monitor display everything that is on the 1st/Primary monitor. My Problem: When I run my function it successfully finds the 2nd monitor and it changes that monitors display x coordinate to 0, ie, the left of the primary monitor screen by changing the DEVMODE dmPosition.x property. Both of my 2 monitors refresh themselves(they go black then reshow their screen) but the 2nd monitor still has the extended display

Show WindowsForm in the center of the Screen (Dual Screen)

纵饮孤独 提交于 2019-12-06 07:24:05
I have Dual Monitors and want displaying a windows form in the center of the screen. (I have a variable MonitorId=0 or 1). I have: System.Windows.Forms.Screen[] allScreens=System.Windows.Forms.Screen.AllScreens; System.Windows.Forms.Screen myScreen = allScreens[0]; int screenId = RegistryManager.ScreenId; // DualScreen management if (screenId > 0) { // has 2nd screen if (allScreens.Length == 2) { if (screenId == 1) myScreen = allScreens[0]; else myScreen = allScreens[1]; } } this.Location = new System.Drawing.Point(myScreen.Bounds.Left, 0); this.StartPosition = FormStartPosition.CenterScreen;

Windows batch file to change monitor settings

老子叫甜甜 提交于 2019-12-06 05:49:45
I have a desktop computer that is hooked up to 3 different monitors of which only two can be active at any one time. One is a primary monitor and is always active. I can manually switch between the other two: one a monitor, another an HDTV. The switch is a mechanical switch which only handles VGA (and at that, only the RGB components are actually switched) so there is no feedback to the computer from the other devices, thus windows can not make any automatic adjustments to change resolutions and things like that. I want to make a batch file that will automatically switch the screen

SDL2: two displays, two windows and fullscreen mode

扶醉桌前 提交于 2019-12-06 05:29:00
I'm trying to create two windows on two displays. But I have a problem: the second window is displayed in full screen mode, but the first window is minimized, and I need to click on it on the taskbar to expand to full screen. I create windows in loop with code: windows_data.window = SDL_CreateWindow("Title", SDL_WINDOWPOS_CENTERED_DISPLAY(i), SDL_WINDOWPOS_CENTERED_DISPLAY(i), width, height, SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_SHOWN); Adding the flag SDL_WINDOW_MAXIMIZED does not solve the problem. My system is Windows 8.1 Proffesional. I debug step by step and found the reason in SDL

On mac, open an Emacs frame in a specific monitor?

拥有回忆 提交于 2019-12-06 04:59:20
问题 Background: I use a mac with dual monitor. When I start Emacs, it always opens in the “main” monitor (the one on my macbook pro), which is not the one I want to look at. Is there any elisp function to open a new frame in a specific monitor, so that I can have frames in both monitors after emacs starts? Or, is there any way to let Emacs starts in the external monitor (if it exists)? BTW, my Emacs is 24.1.1 from emacsforosx.com. 回答1: The visible area across your displays has a contiguous

Move fullscreen window to secondary monitor with Win32/SDL

我们两清 提交于 2019-12-06 02:49:26
问题 I am using SDL 1.2.14, and I've found a case where I need to be able to select which monitor gets the fullscreen window. With Xorg, I found Xinerama could do the job using the SDL_VIDEO_FULLSCREEN_HEAD environment variable, however, I've been unable to find something similar for Win32. The fullscreen window is always created on the primary monitor, and since SDL 1.2 does not (SDL 1.3 can, but it's not stable) provide the API to select which monitor is to be used on Win32, I wonder if it's