mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-24 01:40:36 +00:00
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_timeout (push) Waiting to run
delete old workflow runs / purge_deleted_branch_workflows (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (maint-25.0) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (master) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (release/25.0) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (release/25.1) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/AllocColor) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/ReplyNotSwappd) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/XvPortNotifyPtr) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/always-pciaccess) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/build-rootless) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/char-subscr) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/clang-tidy) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/cleanup) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/cleanup-api-xfree86) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/cleanup-api-xfree86-backup) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/cleanup-grabs) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/cleanup-os-export) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/client_array) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/conv-warnings) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/dix-config) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/dixconf-1) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/dixgetproperty) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/fmt) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/generations) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/geode) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/github-build) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/github-macos-deps) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/github-releases) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/glx_deferred) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/grouping) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/includes) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/includes-2) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/intel-2) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/io) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/log_req_len) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/logging) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/logging_submitted_1) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/maint-xnest) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/marshal) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/matrix-test) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/meson) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/misc.h) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/mpbt) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/netbsd) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/no-libsystemd) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/optional-pci) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/os-unexport) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/pciaccess) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/pedantic) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/pixmap-lifecycle) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/reallocarray) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/requests) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/screenproc) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/screenproc-wrap) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/swap0) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/swapping) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/swapping_new) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/warn-conv) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/win32_2) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/xcb-marshal) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/xf86_platform_bus_newabi) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/xf86bigfont) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/xi-properties) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/xnest-render) (push) Waiting to run
delete old workflow runs / delete_old_workflow_runs_branches (wip/xnest-shm) (push) Waiting to run
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
105 lines
4 KiB
C
105 lines
4 KiB
C
/* SPDX-License-Identifier: MIT OR X11
|
|
*
|
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
|
*/
|
|
#ifndef _XSERVER_MI_PRIV_H
|
|
#define _XSERVER_MI_PRIV_H
|
|
|
|
#include <X11/Xdefs.h>
|
|
#include <X11/Xproto.h>
|
|
#include <X11/Xprotostr.h>
|
|
|
|
#include "dix/screenint_priv.h"
|
|
#include "include/callback.h"
|
|
#include "include/events.h"
|
|
#include "include/gc.h"
|
|
#include "include/mi.h"
|
|
#include "include/micmap.h"
|
|
#include "include/pixmap.h"
|
|
#include "include/regionstr.h"
|
|
#include "include/screenint.h"
|
|
#include "include/scrnintstr.h"
|
|
#include "include/validate.h"
|
|
#include "include/window.h"
|
|
|
|
static inline void SetInstalledmiColormap(ScreenPtr s, ColormapPtr c) {
|
|
dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c);
|
|
}
|
|
|
|
static inline ColormapPtr GetInstalledmiColormap(ScreenPtr s) {
|
|
return (ColormapPtr)dixLookupPrivate(&(s)->devPrivates, &micmapScrPrivateKeyRec);
|
|
}
|
|
|
|
void miScreenClose(ScreenPtr pScreen);
|
|
|
|
void miWideArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc * parcs);
|
|
void miStepDash(int dist, int * pDashIndex, unsigned char * pDash,
|
|
int numInDashList, int *pDashOffset);
|
|
|
|
Bool mieqInit(void);
|
|
void mieqFini(void);
|
|
void mieqEnqueue(DeviceIntPtr pDev, InternalEvent *e);
|
|
void mieqSwitchScreen(DeviceIntPtr pDev, ScreenPtr pScreen, Bool set_dequeue_screen);
|
|
void mieqProcessDeviceEvent(DeviceIntPtr dev, InternalEvent *event, ScreenPtr screen);
|
|
void mieqProcessInputEvents(void);
|
|
void mieqAddCallbackOnDrained(CallbackProcPtr callback, void *param);
|
|
void mieqRemoveCallbackOnDrained(CallbackProcPtr callback, void *param);
|
|
|
|
/**
|
|
* Custom input event handler. If you need to process input events in some
|
|
* other way than the default path, register an input event handler for the
|
|
* given internal event type.
|
|
*/
|
|
typedef void (*mieqHandler) (int screen, InternalEvent *event,
|
|
DeviceIntPtr dev);
|
|
void mieqSetHandler(int event, mieqHandler handler);
|
|
|
|
void miSendExposures(WindowPtr pWin, RegionPtr pRgn, int dx, int dy);
|
|
|
|
_X_EXPORT /* used by in-tree libwfb.so module */
|
|
void miWindowExposures(WindowPtr pWin, RegionPtr prgn);
|
|
|
|
void miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what);
|
|
void miSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h,
|
|
unsigned int subWindowMode);
|
|
|
|
/* only exported for modesetting, not for external drivers (yet) */
|
|
_X_EXPORT Bool miCreateScreenResources(ScreenPtr pScreen);
|
|
|
|
int miShapedWindowIn(RegionPtr universe, RegionPtr bounding, BoxPtr rect,
|
|
int x, int y);
|
|
int miValidateTree(WindowPtr pParent, WindowPtr pChild, VTKind kind);
|
|
|
|
void miClearToBackground(WindowPtr pWin, int x, int y, int w, int h,
|
|
Bool generateExposures);
|
|
void miMarkWindow(WindowPtr pWin);
|
|
Bool miMarkOverlappedWindows(WindowPtr pWin, WindowPtr pFirst,
|
|
WindowPtr *ppLayerWin);
|
|
void miHandleValidateExposures(WindowPtr pWin);
|
|
void miMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pNextSib, VTKind kind);
|
|
void miResizeWindow(WindowPtr pWin, int x, int y, unsigned int w,
|
|
unsigned int h, WindowPtr pSib);
|
|
WindowPtr miGetLayerWindow(WindowPtr pWin);
|
|
void miSetShape(WindowPtr pWin, int kind);
|
|
void miChangeBorderWidth(WindowPtr pWin, unsigned int width);
|
|
void miMarkUnrealizedWindow(WindowPtr pChild, WindowPtr pWin, Bool fromConfigure);
|
|
WindowPtr miSpriteTrace(SpritePtr pSprite, int x, int y);
|
|
WindowPtr miXYToWindow(ScreenPtr pScreen, SpritePtr pSprite, int x, int y);
|
|
|
|
_X_EXPORT /* used by in-tree libwfb.so module */
|
|
int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
|
|
|
|
typedef union _MiValidate {
|
|
struct BeforeValidate {
|
|
xPoint oldAbsCorner; /* old window position */
|
|
RegionPtr borderVisible; /* visible region of border, */
|
|
/* non-null when size changes */
|
|
Bool resized; /* unclipped winSize has changed */
|
|
} before;
|
|
struct AfterValidate {
|
|
RegionRec exposed; /* exposed regions, absolute pos */
|
|
RegionRec borderExposed;
|
|
} after;
|
|
} MiValidateRec;
|
|
|
|
#endif /* _XSERVER_MI_PRIV_H */
|