天道酬勤,学无止境

x11

How to load bmp file using x11 window background

I try to set background image in x11 window using bmp file. I have using XReadBitmapFile but its not working. How can i use bmp file to set x11 window background. Thanks in advance

2021-11-29 02:47:56    分类:问答    c++   linux   x11   embedded-linux   xlib

Mac OS X Window Server vs. X11: the insane task

Dedicated to all who likes low-level Window Server (CoreGraphicsPrivate.h, etc), X11 on Mac, SIMBL and other crazy stuff :) There's a simple X11-emulated application on Mac (like xterm, xeyes and so on) with one window. While running, X11 somehow creates a native Quartz window to represent this emulated application, and this window is accessible via Quartz Window Services so that I can get its CSWindowID, title, position, size and owner's PID (PID of X11.app). But it does not support Accessibility API, so there's no way to control it (except, maybe Core Graphichs private functions from the

2021-11-29 00:08:48    分类:问答    cocoa   core-graphics   x11   macos-carbon   simbl

embedding an application (in this case a terminal) within a QT application

I am writing a QT application and I need to embed a terminal (we say,xterm) within a QDialog, like some KDE application (see kdevelop/kate/...). I've been trying with: - QX11EmbedContainer placed into the QLayout of my QDialog - QProcess for the program I want to excecute I expect the QProcess running within the QX11EmbedContainer, but it does not work. The problem is that I can't put the xterm into the QX11EmbedContainer, the only thing I obtain is an xterm window (unfortunately separated from my QDialog). Does anybody got the same problem?

2021-11-28 22:53:38    分类:问答    linux   qt   x11   kde   xterm

Fake X server for testing?

At work we fully test the GUI components. The problem arises from the fact that, while the testsuite is running, the various components pop up, stealing the focus or making it impossible to continue working. The first thing I thought of was Xnest, but I was wondering if there's a more elegant solution to this problem.

2021-11-28 15:12:03    分类:问答    unit-testing   testing   x11

从 Java 程序打开浏览器窗口(Open Browser window from Java program)

问题 题 我有一个用 Java 编写的应用程序。 它旨在独立运行在 Linux 机器上。 我正在尝试生成一个新的Firefox窗口。 但是, Firefox永远不会打开。 它的 shell 退出代码始终为 1。我可以使用gnome-terminal运行相同的代码,并且可以正常打开。 背景 所以,这是它的初始化过程: 开始 X "Xorg:1 -br -terminate -dpms -quiet vt7" 启动窗口管理器“metacity --display=:1 --replace” 配置资源“xrdb -merge /etc/X11/Xresources” 成为守护进程并断开与控制终端的连接 程序开始运行后,用户可以单击一个按钮,该按钮应该会产生一个 Firefox 窗口。 这是我的代码来做到这一点。 记住 X 在显示器上运行:1。 代码 public boolean openBrowser() { try { Process oProc = Runtime.getRuntime().exec( "/usr/bin/firefox --display=:1" ); int bExit = oProc.waitFor(); // This is always 1 for some reason return true; } catch ( Exception e ) {

2021-11-28 12:49:55    分类:技术分享    java   linux   browser   x11   daemon

Resizing an Xvfb display

Simple Question: Is there a way to resize a Xvfb display? I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen? Thanks for your help!

2021-11-28 12:45:01    分类:问答    x11   vnc   vnc-server   xvfb   xrandr

Vim copy-paste to system buffer not behaving as expected

I'm having a headache trying to figure out why vim isn't copying to a system buffer. Here's my workflow: vim asd y1y :q vim qwe p On computerA and computerB, this works as I want it to: the line yanked from the file asd is put into the file qwe. On computerC, this doesn't work. All systems are running Ubuntu 8.04. computerA has the vim-full package installed, computerB and computerC have the vim package installed. computerA has xorg installed, is using the fluxbox window manager, and is accessed locally. computerB and computerC don't have X, and I'm sshing into both of them. I've done a lot of

2021-11-28 11:19:19    分类:问答    vim   buffer   x11   copy-paste

How can I launch an x-window from emacs ess when running R on a server?

I am using emacs-snapshot with the ssh.el package, following the instructions from the ess manual. There are a few ways to open an R session, but this is how I do it: open emacs C-x C-f /server:dir/file.R this puts me in ESS [S] mode Type 'plot(1)' C-c C-n to run emacs asks for starting directory, and I choose the /server:dir/ I would like for a figure to pop up but it wont. This also doesn't work when using ess-remote in shell or tramp mode, but it does work if I set the starting directory to my local desktop. Any advice much appreciated. My current workaround is to print the file to pdf and

2021-11-28 10:11:43    分类:问答    r   emacs   ess   x11

X11/GLX - Fullscreen mode?

I am trying to create a Linux application - a screensaver, in this case - and it is proving remarkably difficult to find information on the simple task of making a window full-screen. Even the code of existing screensavers makes no mention of how they manage it, and I've yet to see any obvious function like XRemoveDecoration(). After much fumbling around, I did manage to create a window that's the same size as the desktop, with this: Window win = DefaultRootWindow(disp); XWindowAttributes getWinAttr; XGetWindowAttributes(disp, win, &getWinAttr); win = XCreateWindow(disp, win, 0, 0, getWinAttr

2021-11-28 05:45:56    分类:问答    c++   linux   opengl   x11   glx

Cygwin gitk issue

I have recently installed all of the X11 packages in the cygwin setup and now have is massive annoying error with not being able to see gitk. Everything was working perfectly well until I installed this stuff. Before I had this issue I didn't really note done any of the configuration I merely started xwinserver went to my branch and typed gitk and everything appeared. Now I have to put in my display as it claims the display is not set. I export my display settings check that it is set properly by running xclock which does appear. Then I get the issue: 1 [main] wish8.5 3436 child_info_fork

2021-11-27 18:42:24    分类:问答    git   bash   cygwin   x11   gitk