Linux window decoration: check whether native move/resize was successfully started before maximizing window in mouseClicked() (issue #637)

This commit is contained in:
Karl Tauber
2023-03-02 23:55:06 +01:00
parent 2f5c54bb49
commit 74e1972781

View File

@@ -1233,7 +1233,7 @@ debug*/
// on Linux, when using native library, the mouse clicked event
// is usually not sent and maximize/restore is done in mouse pressed event
// this check is here for the case that a mouse clicked event comes thru for some reason
if( SystemInfo.isLinux && FlatNativeLinuxLibrary.isWMUtilsSupported( window ) ) {
if( linuxNativeMove && SystemInfo.isLinux && FlatNativeLinuxLibrary.isWMUtilsSupported( window ) ) {
// see comment in mousePressed()
if( lastSingleClickWhen != 0 && (e.getWhen() - lastSingleClickWhen) <= getMultiClickInterval() ) {
lastSingleClickWhen = 0;