x11

X11 Why I can't draw any text?

℡╲_俬逩灬. 提交于 2019-12-23 23:27:46
问题 I'm trying to learn X11. It's very hard to me, because I don't have experience with window applications on Linux. I wrote some simple code and I can't resolve this not visible text problem. Everything is working good probably, when I was trying to draw rectangle with DrawRectangle function it was working. Here is the code: #include <stdlib.h> #include <stdio.h> #include <string.h> #include <X11/Xlib.h> int main() { Display* myDisplay; Window myWindow; int myScreen; GC myGC; XEvent myEvent;

How to do a fake mouse wheel move in linux

≡放荡痞女 提交于 2019-12-23 20:08:09
问题 I'm trying to simulate keyboard and mouse events, i've successfully made fake keyboard keydown, keyup. Fake mouse button down, up and fake mouse move, but i don't found how to do fake mouse wheel move, can someone explain to me a simple way to do this in c++? Mouse Move and Mouse button press: Display *dpy = XOpenDisplay(NULL); XTestFakeMotionEvent(dpy, -1, 50, 50, 0); XTestFakeButtonEvent(dpy, Button1, true, 0); XTestFakeButtonEvent(dpy, Button1, false, 0); XFlush(dpy); XCloseDisplay(dpy);

Xquartz and MacOS Sierra

我们两清 提交于 2019-12-23 19:02:16
问题 I am facing issue to make some of my applications that run under XQuartz work. This happened after I have updated my OS to Sierra version. I didn't have these issues with the previous OS versions. when I try to Open any of my application like Winskin, and other applications in my field. I get the error message that is titled The application X11 could not be opened . and follows with An error occurred while starting the X11 server: "Failed to activate core devices." this for Winskin. in

C++ compile error when includeing Irrlicht static lib

跟風遠走 提交于 2019-12-23 09:52:17
问题 U have a compile error when trying to include the Irrlicht static libraries into my cmake project Compile error: max@max-MS-7369:~/Desktop/survival/build$ make Scanning dependencies of target survival [ 33%] Building CXX object src/CMakeFiles/survival.dir/technic.cpp.o [ 66%] Building CXX object src/CMakeFiles/survival.dir/render.cpp.o [100%] Building CXX object src/CMakeFiles/survival.dir/survival.cpp.o Linking CXX executable ../debug/survival /usr/bin/ld: ../../irrlicht/lib/Linux

How high do X11 display numbers go?

佐手、 提交于 2019-12-23 09:05:43
问题 The displayno is part of the X11 display name. I have seen several definitions that explain it is a number from 0 upwards, but I haven't seen any documents that explain if there is a maximum display number. What is the highest display number? Where is it defined? The background for this question is that I am trying to understand the Display number allocation algorithm of PyVirtualDisplay. I haven't understood the role of the /tmp/.X*lock files yet, but it looks like the allocation routine

Getting anti-aliased plots with R on Ubuntu

久未见 提交于 2019-12-23 08:54:49
问题 I upgraded my system and reinstalled R, and now my standard X-11 plots are not anti-aliased -- they look jagged and the font looks bad. I seem to recall a problem like this in the past but don't remember what I did about it. Some other info: qplot also comes out non-anti-aliased plotting to a png device produces non-anti-aliased output as well plotting to a pdf device, however, produces nice looking anti-aliased output Another thing: I've been running this version of R/Ubuntu for a while now,

I want to make splash screen and now I have two problems?

懵懂的女人 提交于 2019-12-23 04:39:31
问题 1: I want to have a splash screen but I only have a window?so,how to do with sth like parm 2: I've used a while(!done) to draw the window so how to break out with a function or sth else here is my code and much thx to you g++ -o m_splash m_splash.cpp -lX11 -lImlib2 #include <stdio.h> #include <X11/Xlib.h> #include <Imlib2.h> #include <unistd.h> int main() { Imlib_Image m_img; Display *m_dpy; Pixmap m_pix; Window m_root; Screen *scn; int m_width, m_height; const char *filename = "/home/ang/so

Correct way to send X11 mouse events

早过忘川 提交于 2019-12-23 04:01:09
问题 I am trying to write an X11 input driver that can use the touchscreen on my Android phone to move and click the mouse. I've gotten moving the mouse alright, but I'm having trouble getting the clicks recognized correctly by the applications. My current code is up at https://gist.github.com/3981cedec9d5c55af15f . First of all, when I click on a background window, it becomes the primary window, but it does is not moved to the front of the screen. Second of all, if I right click, the entire

Correct way to send X11 mouse events

南楼画角 提交于 2019-12-23 04:01:06
问题 I am trying to write an X11 input driver that can use the touchscreen on my Android phone to move and click the mouse. I've gotten moving the mouse alright, but I'm having trouble getting the clicks recognized correctly by the applications. My current code is up at https://gist.github.com/3981cedec9d5c55af15f . First of all, when I click on a background window, it becomes the primary window, but it does is not moved to the front of the screen. Second of all, if I right click, the entire

How to start linux with gui without monitor? [closed]

前提是你 提交于 2019-12-23 02:03:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I met a problem. I had a server which is installed redhat enterprise 5.5. And one Qt program was running on this server. So what I should do is to turn on my server, the server will start automaticly with Gui and that Qt program will start automaticly. I finished all on my desktop. But while I start this server