Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:00:47+00:00 2026-06-12T14:00:47+00:00

Can not find any reference on how to close application by the X button.

  • 0

Can not find any reference on how to close application by the “X” button. I’m programming using XCB and want to close the program by the “X” button. I looked and can’t find anything about it. I know how to close by pressing a button. Also, by pressing the “X” button the window looks like it closes but doesn’t.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:00:49+00:00Added an answer on June 12, 2026 at 2:00 pm

    I struggled on this topic some time ago as well.

    Look at http://marc.info/?l=freedesktop-xcb&m=129381953404497 .

    The key is to store the cookie for the WM_DELETE_WINDOW in a separate cookie…

    xcb_intern_atom_cookie_t cookie2 = xcb_intern_atom(c, 0, 16, "WM_DELETE_WINDOW");
    xcb_intern_atom_reply_t* reply2 = xcb_intern_atom_reply(c, cookie2, 0);
    

    and in the event loop compare the client_message with the cookie2

    case XCB_CLIENT_MESSAGE:
    {
        if((*(xcb_client_message_event_t*)event).data.data32[0] == (*reply2).atom) ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've been looking around for days now and I can not find any
HEllo , i can not find any way to get horizontal or/and vertical resolution
I can not find a mod_go for deploying Go web applications. Is there any
I have not been able to find any definitive answers to this question: Can
I've searched around but I can't find any information about this; maybe I'm not
all. Maybe i've not googled enough, but i can't find any example on this
I seem to recall (though can't find any reference now) to one being able
I am working on a web-based program, using Java. I am not sure exactly
I cannot find any info on agner.org on the latency or throughput of the
Cannot find any example on Google.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.