是“监控者"吗?在Gtk3中与“屏幕"相同在X11中? [英] Is a "monitor" in Gtk3 the same as a "Screen" in X11?

查看:66
本文介绍了是“监控者"吗?在Gtk3中与“屏幕"相同在X11中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用gdk_display_get_monitor_at_window在Gtk3中编写了一个应用程序, gdk_monitor_get_geometry.在我使用的75个gtk函数中,这是仅有的两个对试图在Ubuntu上编译的人造成问题的函数,因为大多数人没有运行具有gtk3 3.22的Ubuntu版本.

I wrote an application in Gtk3 using gdk_display_get_monitor_at_window and gdk_monitor_get_geometry. Out of 75 gtk functions that I used, these are the only 2 that are causing problems for people trying to compile on Ubuntu because most people are not running a version of Ubuntu that has gtk3 3.22.

我的应用程序也使用X11,因此我想用X11等效项替换这些功能.简要查看X11之后,我有一些问题:

My application also uses X11, so I want to replace these functions with X11 equivalents. After briefly looking at X11, I have some questions:

  1. Gtk的显示器"等于X11的屏幕"吗?
  2. 如果对1.的回答为是",那么X11中的Gtk屏幕"等于什么?
  3. 每个中的显示"是什么?

将Gtk中的显示/屏幕/显示器等与X11进行比较的完整表格会很好.

A complete table comparing display/screen/monitor etc in Gtk to X11 would be good.

推荐答案

监视器是物理设备.屏幕是一种逻辑设备,可能配有自己的键盘和指针(鼠标).一个屏幕可以跨越多台显示器.

A monitor is a physical device. A screen is a logical device, possibly complete with its own keyboard and pointer (mouse). A screen can span multiple monitors.

即使有多台监视器,在个人计算机上通常也只有一个屏幕(一个键盘,一个鼠标).由于无法在多个屏幕之间移动窗口,因此多个屏幕在PC上的用途受到限制.多屏设置最适合多用户计算机,其中每个用户都有自己的显示器,键盘和鼠标.

Normally there is only one screen (one keyboard, one mouse) on a personal computer, even if there are multiple monitors. Multiple screens are of limited utility for a PC as it is not possible to move windows between screens. A multi-screen setup works best for a multi-user machine where each user gets his own monitor, keyboard and mouse.

多屏幕设置的另一种形式是,可以在屏幕之间移动鼠标指针(因此,只有一个鼠标和一个键盘),但是窗口仍限于其屏幕.这个变体使我们彻底过时了.

There is another variant of multi-screen setup where one can move the mouse pointers between screens (and so there is one mouse and one keyboard), but windows are still confined to their screens. This variant us thoroughly obsolete.

显示器是可以管理一个或多个屏幕(在典型的PC上只有一个屏幕)的网络服务器.

A display is a network server that can manage one or more screens (on a typical PC, just one screen).

这篇关于是“监控者"吗?在Gtk3中与“屏幕"相同在X11中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆