mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
Add a method to GSDisplayServer that allows you to obtain the
identifier used by the backend's windowing system instead of just the GNUstep-internal window number. On X11, the identifier is useful, among other things, to implement the D-Bus menu protocol. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37533 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4c06213c78
commit
d499d53e75
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2014-01-01 Niels Grewe <niels.grewe@halbordnung.de>
|
||||||
|
* Source/x11/XGServerWindow.m: Implement method to get
|
||||||
|
the XWindow ID of the a window from its window number.
|
||||||
|
|
||||||
2013-12-29 Fred Kiefer <FredKiefer@gmx.de>
|
2013-12-29 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/cairo/CairoGState.m (-GSSetFont:),
|
* Source/cairo/CairoGState.m (-GSSetFont:),
|
||||||
|
|
|
@ -2291,6 +2291,17 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
||||||
return window->number;
|
return window->number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void*)backendIdentifierForWindow: (int)win
|
||||||
|
{
|
||||||
|
gswindow_device_t *window;
|
||||||
|
window = WINDOW_WITH_TAG(win);
|
||||||
|
if (!window)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
return (void*)(intptr_t)window->ident;
|
||||||
|
}
|
||||||
|
|
||||||
- (void) termwindow: (int)win
|
- (void) termwindow: (int)win
|
||||||
{
|
{
|
||||||
gswindow_device_t *window;
|
gswindow_device_t *window;
|
||||||
|
|
Loading…
Reference in a new issue