<p>Issue: Geany is closing when i3 is restarted.</p>
<p>Steps to reproduce:</p>
<ol>
<li>Open geany</li>
<li>Restart i3 repeatedly using keybind $mod+Shift+r (default)</li>
<li>Geany will then close</li>
</ol>
<p>Error message:<br>
<code>(geany:6353): Gdk-ERROR **: The program 'geany' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 7012 error_code 3 request_code 2 (core protocol) minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap (core dumped)</code></p>
<p>Details:</p>
<ul>
<li>OS:          Arch Linux</li>
<li>Kernel:    4.14.15-1-ARCH</li>
<li>Geany:    1.32 (built on 2018-01-29 with GTK 3.22.26, GLib 2.54.3)</li>
<li>i3:            4.14.1 (2017-09-24)</li>
</ul>
<p>Please let me know if you need any additional information. I'm happy to help. Thank you.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1755">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9N-rHXrpS-VVJ9TOqIXdYHJG6mEks5tQfZ2gaJpZM4R2AdG">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-aHeOajzzzNEoII0YeQLxikf1Hsks5tQfZ2gaJpZM4R2AdG.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1755"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Geany closing on i3wm restart (#1755)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1755"}}}</script>