Skip to content

Commit

Permalink
fix: Generalize gnome 40 version check from pop-os#1069 apply to all …
Browse files Browse the repository at this point in the history
…gnome 4x versions
  • Loading branch information
kevin committed Nov 23, 2021
1 parent 9b75a37 commit 1adc63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2640,7 +2640,7 @@ let default_getcaption_workspace: any;
*/
function _show_skip_taskbar_windows(ext: Ext) {
let cfg = ext.conf;
if (!GNOME_VERSION?.startsWith("40.")) {
if (!GNOME_VERSION?.startsWith("4")) {
// TODO GNOME 40 added a call to windowtracker and app var is not checked if null
// in WindowPreview._init(). Then new WindowPreview() is being called on
// _addWindowClone() of workspace.js.
Expand Down Expand Up @@ -2812,7 +2812,7 @@ function _show_skip_taskbar_windows(ext: Ext) {
*
*/
function _hide_skip_taskbar_windows() {
if (!GNOME_VERSION?.startsWith("40.")) {
if (!GNOME_VERSION?.startsWith("4")) {
if (default_isoverviewwindow_ws)
Workspace.prototype._isOverviewWindow = default_isoverviewwindow_ws;
}
Expand Down

0 comments on commit 1adc63c

Please sign in to comment.