Low level X11 programming


 
Thread Tools Search this Thread
Top Forums Programming Low level X11 programming
# 1  
Old 11-30-2015
Low level X11 programming

How to use X11 without Xlib not XCB? How draw window directly on low level?
I must use anyway window manager like Motif?
I have ridden that X11 has server-client architecture, client send via TCP/IP to port 6000 request for primitives and get replies.
Where is detailed description of it? In X11 doc is 35 directories like bigreqsproto, compositeproto, damageproto, dri2proto ...

I see that usually not using port 6000 but file (symlink) X0 in hidden directory /tmp/.X11-unix
----
I begin to understand thanks to x11protocol.pdf from doc.tar.bz2 from ftp://ftp.ntua.gr/pub/X11/X.org/X11R7.7, but I don't know if is possible copy bitmap from client to server? Is request CopyArea but this copy area from on place of screen to other. Requests are small and sending big bitmaps is time consuming especially with remote servers. In other hand - memory bitmaps enable fast pixel changing, for example I read jpg from file to memory. If I have image in memory, how send it to server?

Last edited by AndrzejB; 11-30-2015 at 07:44 PM.. Reason: x11protocol.pdf
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

MOTIF programming and X11 client !

Hi there , i am interesting in MOTIF programming. One question : Is it right that in Motif GUI programming the actions are automaticly transformed and networked to other clients over the internet without network programming necessary ? Are the commands automatic transformed by the X11... (4 Replies)
Discussion started by: Zabo
4 Replies

2. Programming

Why is C/C++ considered low-level languages???

Hi friends, I hope everyone is doing well and fine. I have always been hearing that C/C++ are relatively low-level as compared to Java/C# etc. Could you please tell me some low-level qualities of C/C++? And I think disk deframenters are written in C/C++, please correct me if I am wrong. And please... (5 Replies)
Discussion started by: gabam
5 Replies

3. Programming

System calls and C language low-level qualities???

Hi friends, I hope everyone is fine and doing well. I queried in my previous thread about the low-level qualities of C/C++ languages.I really thank you people for explaining, it was really helpful. One more ambiquity that I have in my mind is regarding the unix system calls like open, creat,... (1 Reply)
Discussion started by: gabam
1 Replies

4. AIX

High Runqueue (R) LOW CPU LOW I/O Low Network Low memory usage

Hello All I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) . The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Discussion started by: IL-Malti
9 Replies

5. IP Networking

Best reference for understanding low level info on nic cards drivers and functionality

Hi, What is the best reference that gives in detail on nic cards configuration , assigning multiple ip addresses to a single interface, netlink library etc and all basic stuff at this level..? Thanks (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies

6. Programming

write() issue during a low level hdd access

Hi, I am trying to write zeroes to the hdd using a c program. I don't want to use the dd or ddrescue or any such inbuilt program because of reasons like real time progress, writing custom patterns. (my program is more like an erasure application, but does only zero fill). here are the steps... (35 Replies)
Discussion started by: sponnusa
35 Replies

7. UNIX for Dummies Questions & Answers

Low level format?

I want to do a low level format like in windows (C:\format c:) but I don't know how it works in unix or linux.. Can somebody help me ? thnx :) (3 Replies)
Discussion started by: day
3 Replies
Login or Register to Ask a Question
xcb_send_event(3)						   XCB Requests 						 xcb_send_event(3)

NAME
xcb_send_event - send an event SYNOPSIS
#include <xcb/xproto.h> Request function xcb_void_cookie_t xcb_send_event(xcb_connection_t *conn, uint8_t propagate, xcb_window_t destination, uint32_t event_mask, const char *event); REQUEST ARGUMENTS
conn The XCB connection to X11. propagate If propagate is true and no clients have selected any event on destination, the destination is replaced with the closest ancestor of destination for which some client has selected a type in event_mask and for which no intervening window has that type in its do-not-propagate-mask. If no such window exists or if the window is an ancestor of the focus window and InputFocus was originally specified as the destination, the event is not sent to any clients. Otherwise, the event is reported to every client selecting on the final destination any of the types specified in event_mask. destination The window to send this event to. Every client which selects any event within event_mask on destination will get the event. The special value XCB_SEND_EVENT_DEST_POINTER_WINDOW refers to the window that contains the mouse pointer. The special value XCB_SEND_EVENT_DEST_ITEM_FOCUS refers to the window which has the keyboard focus. event_mask Event_mask for determining which clients should receive the specified event. See destination and propagate. event The event to send to the specified destination. DESCRIPTION
Identifies the destination window, determines which clients should receive the specified event and ignores any active grabs. The event must be one of the core events or an event defined by an extension, so that the X server can correctly byte-swap the contents as necessary. The contents of event are otherwise unaltered and unchecked except for the send_event field which is forced to 'true'. RETURN VALUE
Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the event loop. If you want to handle errors directly with xcb_request_check instead, use xcb_send_event_checked. See xcb-requests(3) for details. ERRORS
xcb_window_error_t The specified destination window does not exist. xcb_value_error_t The given event is neither a core event nor an event defined by an extension. EXAMPLE
/* * Tell the given window that it was configured to a size of 800x600 pixels. * */ void my_example(xcb_connection_t *conn, xcb_window_t window) { /* Every X11 event is 32 bytes long. Therefore, XCB will copy 32 bytes. * In order to properly initialize these bytes, we allocate 32 bytes even * though we only need less for an xcb_configure_notify_event_t */ xcb_configure_notify_event_t *event = calloc(32, 1); event->event = window; event->window = window; event->response_type = XCB_CONFIGURE_NOTIFY; event->x = 0; event->y = 0; event->width = 800; event->height = 600; event->border_width = 0; event->above_sibling = XCB_NONE; event->override_redirect = false; xcb_send_event(conn, false, window, XCB_EVENT_MASK_STRUCTURE_NOTIFY, (char*)event); xcb_flush(conn); free(event); } SEE ALSO
xcb-requests(3), xcb-examples(3), xcb_configure_notify_event_t(3) AUTHOR
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. XCB
2014-06-10 xcb_send_event(3)