multiple-monitors

Why is my Google Chrome extension's popup UI laggy on external monitors but not on my laptop's native screen?

蓝咒 提交于 2021-02-17 21:46:07
问题 So.. I'm building a chrome extension and it includes a simple popup page that appears when you click on the extension's icon. This popup page consists of some simple HTML, CSS and jQuery code. Nothing fancy. The JS seems to be running fine but the CSS hover, transition, and animation effects are extremely laggy (up to 5 seconds lag) when I interact with it on an external monitor. Everything else runs perfectly fine and I can see that the JavaScript is executing as expected. It's just the

Mouse position on extended displays

你。 提交于 2021-02-17 05:54:25
问题 I could not find anything on this particular problem, so here it goes! I am interested in changing the position of the mouse cursor programmatically. Cursor.Position = new Point(x, y); works as expected using a single monitor. However, when I plug in a second one and choose to extend the desktop, changing the cursor's coordinates only works relative to the main screen. So, does anyone know how to tell the cursor that I want to move to a different screen? 回答1: Get the width and height of your

Controlling multiple pointers with Xlib or xinput in ubuntu/linux

廉价感情. 提交于 2021-02-10 23:25:50
问题 I'm creating a system that uses multiple cursors (pointers) in multiple xsessions. My computer has multiple video cards in it for controlling different monitors. I want to have a different cursor on each screen and control each. Each monitor is a different session. I started using the xlib library in C to control the single cursor I have using the following command: XWarpPointer(display,None,window,0,0,0,0,x,y); This works perfectly for one cursor. Then I created a second cursor using xinput

C# - How to get real screen resolution in multiple monitors context?

限于喜欢 提交于 2020-06-27 09:54:05
问题 For one of my application (write in WPF), I need to get some informations about monitors : Current resolution, scaling factor and real resolution. I know this question has been asked many times but I'm not able to find a good answer in all SO questions that talked about that... In my case for example, I have 3 monitors placed in this order : Monitor 1 (integrated laptop screen) : 1920x1080, scaled at 125% Monitor 2 (LG 22") : 1920x1080, scaled at 100% (PRIMARY MONITOR) Monitor 3 (LG 22") :

How can I check that a window is fully visible on the user's screen?

喜欢而已 提交于 2020-06-11 16:58:27
问题 Is there a way to check that a WinForm is fully visible on the screen (eg is not out of bounds of the screen?) I've tried using SystemInformation.VirtualScreen for this, which works great as long as the virtual screen is a rectangle, but as soon as it's not (eg 3 screens in a L shape), SystemInformation.VirtualScreen returns the smallest rectangle containing all the visible pixels (so a window on the upper right corner of the L won't be visible although it's in the virtual screen) The reason

How can I check that a window is fully visible on the user's screen?

余生颓废 提交于 2020-06-11 16:58:13
问题 Is there a way to check that a WinForm is fully visible on the screen (eg is not out of bounds of the screen?) I've tried using SystemInformation.VirtualScreen for this, which works great as long as the virtual screen is a rectangle, but as soon as it's not (eg 3 screens in a L shape), SystemInformation.VirtualScreen returns the smallest rectangle containing all the visible pixels (so a window on the upper right corner of the L won't be visible although it's in the virtual screen) The reason

Tkinter on Ubuntu 14.02 Reports width as sum of both monitors

跟風遠走 提交于 2020-02-02 13:53:37
问题 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