aa70815f5f
Implement very basic grab pointer
...
This is definitely not correct with child windows but works with single
window apps (minecraft)
2026-06-01 22:24:17 +03:00
19f043744a
Allow querying global cursor position
...
If a platform implements this, e.g. xeyes can track cursor when the
window is not receiving mouse movement events
2026-06-01 22:04:01 +03:00
af2132315d
Implement WarpPointer
...
This allows playing games that capture the cursor
2026-06-01 22:04:01 +03:00
83af554e8c
Add support for global window position
...
This allows proper TranslateCoords and event root coordinate reporting
2026-06-01 20:39:47 +03:00
b41d979dcb
Port to SDL3 instead of SDL2
...
Main reason is that SDL3 allows getting keyboard mappings with modifiers
2026-06-01 20:35:56 +03:00
504eb2716b
Fix QueryPointer
...
QueryPointer is supposed to return first child of the window containing
the pointer, not the deepest child. This fixes gtk getting into an
invalid state when pressing a mouse button
2026-06-01 20:35:56 +03:00
92e02dcadf
Don't create platform window for small windows
...
These are usually internal event windows which should not be visible.
I'm not sure what the correct check for this would be...
gtk and other toolkits create a lot of dummy windows that should not be
visible.
2026-06-01 20:35:56 +03:00
d787afb7e3
Disable shared pixmaps on MIT-SHM
...
Our internal pixmap representation does not match what we advertice in
out pixmap formats, and there is no way to only enable 24 and 32 depth
pixmaps for SHM so just disable them all together. MIT-SHM can still be
used through Shm{Get,Put}Image. We probably should store pixmaps as we
say we do, but its too much work for now :^)
2026-06-01 04:55:43 +03:00
f6a87f064f
Add support for system cursors
...
When a client creates a cursor from the default cursor font, we try to
detect which cursor it is and create a native system cursor based on
that.
2026-06-01 04:55:43 +03:00
6450fd9a2f
Add initial support for window types
...
This makes popup windows work much better
2026-06-01 03:01:31 +03:00
2ddd67dede
Start work on making xbanan portable
...
This will allow usage of xbanan on non banan-os platforms. I added a
"native" SDL2 port so it can be used without the window manager
2026-06-01 01:27:49 +03:00
7be8edada7
Add child window id to its parent
...
I had accidentally removed this in b228ef13c4 and it broke all programs
that were using child windows :D
2026-04-15 18:43:03 +03:00
b228ef13c4
Fix null depth on CreateWindow
2026-03-23 17:15:57 +02:00
f7150056c4
Cleanup debug prints
2026-02-23 03:02:07 +02:00
bb7632d53f
Fix input event state and child window
...
state represents state just before the event, not current
set child window to null if wid == child_wid
2026-02-23 03:00:08 +02:00
61f8b2fa66
Implement per-client event masks
...
This allows multiple clients to listen for events on the same window.
Mostly used for listening events on the root window
2026-02-23 00:40:53 +02:00
561aaecc3f
Add support for changing window's fullscreen state
2026-02-22 22:16:33 +02:00
4886e71452
Cleanup WM_CLOSE_WINDOW atom handling
...
predefine needed atoms so we dont have to check if or when they are
made available
2026-02-22 22:15:48 +02:00
8c2fea9edf
Cleanup whitespace and suppress unused variable warnings
2026-02-22 22:13:03 +02:00
85bb292a31
Support WM_CLOSE_WINDOW
2026-02-22 22:13:03 +02:00
6119e8dc7a
Implement FillPoly
2026-02-21 18:29:44 +02:00
4c1f869e32
Dont use c++26 extension
2026-02-21 17:18:25 +02:00
7018e1e17d
Fix font pattern matching and add ListFontsWithInfo
2026-02-21 17:15:46 +02:00
a13b8617dc
Implement line drawing PolyLine, PolySegment
2026-02-21 16:29:42 +02:00
df32c7aa99
Add global safe getters for retrieving objects
2026-02-21 14:37:13 +02:00
a52181e140
Implement GrabServer and UngrabServer
...
These seem very scary but they are part of the spec :)
2026-02-21 05:04:17 +02:00
8a0f287d8c
Send NoExposure in CopyArea
...
Im not sure if/when i should be sending GraphicsExposure but this fixes
xterm hanging when scrolling
2026-02-21 04:32:48 +02:00
6da9cb7362
Add font support
2026-02-21 03:50:42 +02:00
a32d509cde
Fix CreateCursor masking
...
If there was no mask, cursor would be invisible
2026-02-21 03:46:14 +02:00
2016621f78
Implement SetClipRectangles
...
This fixes firefox flickering with SHM
2026-02-21 03:45:45 +02:00
406ea61be0
Implement ShmCreatePixmap
2026-02-21 03:43:06 +02:00
572a0b6bd5
Fix some crashes on invalid ids
2026-02-21 03:40:39 +02:00
631770725b
Implement ReparentWindow, ListProperties, QueryBestSize
2026-02-21 03:39:57 +02:00
632787b142
Implement ShmGetImage
...
Also SHM extension is now only compiled if the system has shmat and
shmdt
2026-02-12 18:40:55 +02:00
188f9182ea
Add stub OpenFont
2026-02-12 02:40:10 +02:00
abaa239505
Add basic MIT-SHM support
...
Supports only Attach, Detach and PutImage but those seem to be enough
for firefox and chromium
2026-02-12 02:39:24 +02:00
545ddefcce
Fix ListExtension string encoding
2026-02-12 02:38:35 +02:00
24baab2e84
Cleanup extensions
2026-02-12 02:38:08 +02:00
6124525439
Store per window depths
2026-02-12 02:37:12 +02:00
b9c69d8456
Add proper support for QueryKeymap
2026-02-12 02:35:56 +02:00
a74d99de45
Fix keymaps, reported info and add custom cursors
2026-02-11 17:43:47 +02:00
4801fd3e67
Only send key/mouse events to a single window
...
Firefox was getting mouse clicks as duplicates making every click a
double click
2026-02-10 03:05:15 +02:00
808e51b855
Make objects global instead of per client
...
This allows copying from one window to another!
2026-02-10 01:28:47 +02:00
d59dea43e0
Add bunch of stuff and refactor code
...
This adds some new opcodes, implements RANDR extension and splits stuff
into separate files
2026-02-10 00:54:02 +02:00