mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +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/gui/trunk@37533 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4c0f9fbc97
commit
ae97581586
3 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-01-01 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
|
||||
* Source/GSDisplayServer.m:
|
||||
Add a method to get the window identifier used by the
|
||||
backend (instead of just the window number).
|
||||
|
||||
2013-12-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/AppKit/NSAnimation.h
|
||||
|
|
|
@ -127,6 +127,7 @@ APPKIT_EXPORT NSString *GSScreenNumber;
|
|||
- (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style
|
||||
: (int)screen;
|
||||
- (void) termwindow: (int)win;
|
||||
- (void*)backendIdentifierForWindow: (int)win;
|
||||
- (int) nativeWindow: (void *)winref : (NSRect*)frame : (NSBackingStoreType*)type
|
||||
: (unsigned int*)style : (int*)screen;
|
||||
|
||||
|
|
|
@ -570,6 +570,11 @@ GSCurrentServer(void)
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void*)backendIdentifierForWindow: (int)win
|
||||
{
|
||||
return win;
|
||||
}
|
||||
|
||||
/** Create all the backend structures for a reference to a native window and
|
||||
return the extend, backing type, style and screen for that window. */
|
||||
- (int) nativeWindow: (void *)winref
|
||||
|
|
Loading…
Reference in a new issue