The post in the site referenced in the comment above got updated:
Thanks, I tried putting wl_proxy_marshal((struct wl_proxy *) xdg_surface, 
XDG_SURFACE_ACK_CONFIGURE, serial); (xdg_surface_ack_configure() equivalent) 
before every vkQueueSubmit (I know that you meant to put the ack in response to 
events, but while trying to make things work, I thought that it needed to be 
before every vkQueueSubmit), and the window-menu started working, but events 
weren't triggering. I then discovered that I needed to call 
wl_display_roundtrip() every frame and only call xdg_surface_ack_configure 
after certain events (xdg_surface_listener's and xdg_toplevel_listener's 
configure events (not the xdg_surface_listener's event is always present when 
configure events happen (and is always the last event according to 
xdg-shell.xml), so ack_configure only needs to be put in xdg_surface_listener's 
configure event)). This is what I ended-up with in my draw loop:

                retStatus = wl_display_flush(display);
                if(retStatus == -1) {
                        //TODO: use poll() to wait until display fd is writable 
again, and call wl_display_flush again
                        exit(1);
                }
                wl_display_roundtrip(display); //blocks
                submitInfos[0].pCommandBuffers = &commandBuffers[imageIndex];
                vkQueueSubmit(graphicsQueue, 1, submitInfos,
                        fence); 
                wl_display_dispatch_pending(display);

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-desktop3 in Ubuntu.
https://bugs.launchpad.net/bugs/1872871

Title:
  Xdg-Shell Stable not working properly

Status in gnome-desktop3 package in Ubuntu:
  Invalid
Status in gnome-desktop3 package in Debian:
  New

Bug description:
  I'm trying to run a simple Vulkan program on Debian Testing (GNOME
  desktop using Mesa Vulkan implementation), but it seems like there
  might be an issue with GNOME, since none of the xdg_shell (stable)
  callbacks seem to be working and resizing the window doesn't work
  (although the window is rendering correctly at least). Swapping to
  another window, and then going to the list of windows to choose from
  causes the window's preview (on the list of windows) to be partially-
  hidden behind other windows and be unclickable (note that this is
  GNOME's window-selection screen(under activities), not switching tabs
  like on Windows). None of the Wayland (including xdg-shell) functions
  are returning errors and Vulkan validation layers are not reporting
  any warnings. is anyone else experiencing this and/or knows a solution
  to this? Could this be because I'm using xdg-shell stable
  (xdg_wm_base), which was released relatively recently? I'm using a .h
  file (generated from the xdg-shell xml on my system) to define the
  interfaces (not a static or dynamic library), but I believe that this
  is correct, and that there is no xdg-shell dynamic library to load. I
  was using wl_shell before this, and the window-selection screen worked
  properly while using wl_shell.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-desktop3/+bug/1872871/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to