I am using Gtkmm4, and lots of API has been removed. In Gtk3 one could use Gtk::Window::get_xid (inherited from Gdk::Window), but thats not possible anymore, because Gdk::Window has been renamed to Gdk::Surface, and Gtk::Window seems to not inherit from it anymore. But, one can always get the XId of a Gdk::Surface using GDK_SURFACE_XID(surface). How can i get the Gdk::Surface of a Gtk::Window, or alternatively, get the XId from a Gtk::Window directly ?
Note : i need only solutions using Gtkmm 4, not Gtkmm 3 !
How to get the XId of a Gtk::Window in Gtkmm4
623 Views Asked by TheEagle At
1
There are 1 best solutions below
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in X11
- How can I set an uncommon screen resolution on GNU/Linux with an Arc 380 GPU and X11?
- Create screenshot and encode it in base64
- Rasppberry pi Remote Desktop Conection Problem
- GithubActions - PlatformError: X11: The DISPLAY environment variable is missing
- Unable to run X11 applications remotely via XQuartz on a mac
- WSL2 OpenAI Gym - render segmentation fault
- Converting BufferedImage to Pixmap
- Is there a lightweight GUI protocol like X11 that works well over ssh?
- dropdown is closing quickly without any action when tried to open it. it is a motif Xt library based application
- XCreateWindow - parent argument implications
- Drawing image to root window in Xorg using Xcb causes it to cover other windows
- How to open a GUI-Application on a Server (Raspi) via SSH using python/paramiko?
- Switch layouts and get char without X11 by driver?
- Xrandr making DisplayWidth() return incorrect value?
- Xlib Window Manager: Closing Focused Window Causes Unexpected Shutdown
Related Questions in XLIB
- Can I use Xlib in service?
- XCreateWindow - parent argument implications
- how to use fallback font to draw text with xlib/libxft?
- Xrandr making DisplayWidth() return incorrect value?
- Xlib Window Manager: Closing Focused Window Causes Unexpected Shutdown
- freetype with xft and xlib, changing the font size does not work
- It is safe to use stdlib allocator functions with XLib allocations (those requiring `XFree`)
- XInput 2 Error with RawMotion (BadValue on XISelectEvents with higher values)
- Buggy Xlib window manager destroys contextual menus
- Counting mouse buttons X11 Linux
- Strange problem with X11 positioning of the windows and window manager interactions
- How can I use XFilterEvent?
- Got wrong pictures while saving ZPixmap to png
- For xlib, how to create a child window with the background pixel or pixmap of its parent window?
- Opaque elements in transparent window in Xorg
Related Questions in GTKMM
- "Correct" way to reset Style / CssProvider to default style/theme in GTKMM4
- Embed gettext translation (po) data into binary
- (gtkmm, sfml) My music stream is experiencing stuttering
- Calling a method from a binding is giving a "no match for call" error
- gtkmm3 how to move a window inside a Gtk::ScrolledWindow
- GTKMM3 related error while installing Cadabra on Windows
- Include Library into C++ Project using Cmake
- GTKMM 4.10 - convert treeview to columnview - obtain coordinates relative to columnview - when popping up a right click context menu
- Electon setBadgeCount equivalent for GTK apps
- Abstract factory design pattern : issue handling abstractions
- gtkmm ui stop update -> simple example code. Error from console: "GLib-CRITICAL **: 20:01:50.497: Source ID 261"
- can't associate Gtk::DrawingArea with its form from the glade file on c++
- GTKMM 4.10 - Scrolled window - set adjustments (horizontal + vertical) - not automatically scrolling
- gtkmm.h cannot open source file (Cross Compiling in Visual Studio for RaspberryPI)
- Gtk::ComboBoxText select item with mouse on dropdown macOS Ventura 13.2.1 Gtkmm4
Related Questions in GTKMM4
- Gtkmm columnview, custom class, large number of columns fails with assertion when selecting a row/column
- GTKMM 4.10 - convert treeview to columnview - obtain coordinates relative to columnview - when popping up a right click context menu
- Why Gdk::Pixbuf not load from resources, when execute outside MSYS2?
- Global Locale Warning using C++ and gtkmm
- gtkmm: How do I use a custom widget in a GtkBuilder XML file?
- GTKMM4 app is crashing on calling window hide()
- gtkmm-4.0 will not link on macOS Monterey
- How to change the entry's font size in gtkmm
- How to move the Gtk::Entry cursor?
- How to get the XId of a Gtk::Window in Gtkmm4
- How do I send text from TextView to 'Export to PDF'?
- gtkmm 4.0 header build errors when compiling own project
- why isn't GdkEventKey declared anywhere?
- How to create trigger a function when key is pressed in gtkmm?
- How to get a method called when the Gtk::DropDown selected item has changed?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The code that deals with the underlying surfaces got split off into a separate interface,
Gtk::Native, whichGtk::Windowthen implements.Gtk::Nativehas a methodget_surface()which should just work likeGtk::Window::get_window()did in GTK 3.